diff options
| author | Peter Penz <[email protected]> | 2007-01-21 21:20:37 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-01-21 21:20:37 +0000 |
| commit | 70999c96a27777c2b1d0774b410680abd47eb131 (patch) | |
| tree | 2ca53017101e8e5d859db216cfa0e7bf93798f6a /src/dolphinview.cpp | |
| parent | 07e07fd522cc278dffccc3b8b6faded0f6f5df20 (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/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
