From 70999c96a27777c2b1d0774b410680abd47eb131 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 21 Jan 2007 21:20:37 +0000 Subject: 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 --- src/dolphiniconsview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dolphiniconsview.cpp') 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(model()); - const KDirModel* dirModel = static_cast(proxyModel->sourceModel()); - item = dirModel->itemForIndex(index); + item = m_parentView->fileItem(index); } m_parentView->openContextMenu(item, event->globalPos()); -- cgit v1.3