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/dolphinview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 470abe5b7..63bbf22b8 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -499,9 +499,9 @@ KUrl::List DolphinView::selectedUrls() const return urls; } -const KFileItem* DolphinView::currentFileItem() const +KFileItem* DolphinView::fileItem(const QModelIndex index) const { - return 0; // fileView()->currentFileItem(); + return m_dirModel->itemForIndex(index); } void DolphinView::openContextMenu(KFileItem* fileInfo, const QPoint& pos) -- cgit v1.3