┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-21 22:12:49 +0000
committerPeter Penz <[email protected]>2007-01-21 22:12:49 +0000
commitccb06e68ac2f983c4de5a4f37754362ca7ad6b12 (patch)
tree96243951bc46b6d3135f2d1a8504faf9f04cbd23 /src/dolphinview.cpp
parent70999c96a27777c2b1d0774b410680abd47eb131 (diff)
- Fixed crash when showing "Open With..." items of the context menu: the model index from the proxy model was used instead of the model index from the KDirModel.
- Use QMenu::addSeparator() instead of QMenu::insertSeparator(). svn path=/trunk/playground/utils/dolphin/; revision=626040
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 63bbf22b8..7d24ebca5 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -501,7 +501,8 @@ KUrl::List DolphinView::selectedUrls() const
KFileItem* DolphinView::fileItem(const QModelIndex index) const
{
- return m_dirModel->itemForIndex(index);
+ const QModelIndex dirModelIndex = m_proxyModel->mapToSource(index);
+ return m_dirModel->itemForIndex(dirModelIndex);
}
void DolphinView::openContextMenu(KFileItem* fileInfo, const QPoint& pos)