diff options
| author | Peter Penz <[email protected]> | 2009-07-23 06:28:28 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-23 06:28:28 +0000 |
| commit | 47d50032839e70f847adc1cc0de784f001936954 (patch) | |
| tree | e898fc215932aba8fff7c9cb4f077a546b1b0e1d /src/dolphinview.cpp | |
| parent | fddd17030cf1da66415aad51e31575d2a1e2dda0 (diff) | |
The revision control plugin must be aware on which directory the context-menu-actions should get applied. Relying on the directory that has been used in beginRetrieval() does not work when having a treeview.
svn path=/trunk/KDE/kdebase/apps/; revision=1001388
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index a979ecdd2..a12e7a991 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -611,7 +611,9 @@ QString DolphinView::statusBarText() const QList<QAction*> DolphinView::revisionControlActions(const KFileItemList& items) const { - return m_revisionControlObserver->contextMenuActions(items); + return items.isEmpty() + ? m_revisionControlObserver->contextMenuActions(url().path(KUrl::AddTrailingSlash)) + : m_revisionControlObserver->contextMenuActions(items); } void DolphinView::setUrl(const KUrl& url) |
