┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-21 21:20:37 +0000
committerPeter Penz <[email protected]>2007-01-21 21:20:37 +0000
commit70999c96a27777c2b1d0774b410680abd47eb131 (patch)
tree2ca53017101e8e5d859db216cfa0e7bf93798f6a /src/dolphiniconsview.cpp
parent07e07fd522cc278dffccc3b8b6faded0f6f5df20 (diff)
Cleanup of DolphinContextMenu:
- don't use any deprecated methods anymore - temporary deactivated the "Open With..." submenu. There's a crash in KDirModel when invoking KFileItem::mimetype(); although the same code worked with an older version of kdelibs, I assume this is a Dolphin issue -> I'll do some further analyses... svn path=/trunk/playground/utils/dolphin/; revision=626023
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index 11fbf69a0..6d5509275 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -61,9 +61,7 @@ void DolphinIconsView::contextMenuEvent(QContextMenuEvent* event)
const QModelIndex index = indexAt(event->pos());
if (index.isValid()) {
- const QAbstractProxyModel* proxyModel = static_cast<const QAbstractProxyModel*>(model());
- const KDirModel* dirModel = static_cast<const KDirModel*>(proxyModel->sourceModel());
- item = dirModel->itemForIndex(index);
+ item = m_parentView->fileItem(index);
}
m_parentView->openContextMenu(item, event->globalPos());