┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/revisioncontrolobserver.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-07-23 06:28:28 +0000
committerPeter Penz <[email protected]>2009-07-23 06:28:28 +0000
commit47d50032839e70f847adc1cc0de784f001936954 (patch)
treee898fc215932aba8fff7c9cb4f077a546b1b0e1d /src/revisioncontrolobserver.cpp
parentfddd17030cf1da66415aad51e31575d2a1e2dda0 (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/revisioncontrolobserver.cpp')
-rw-r--r--src/revisioncontrolobserver.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/revisioncontrolobserver.cpp b/src/revisioncontrolobserver.cpp
index 5b3c38947..f3bf08ce4 100644
--- a/src/revisioncontrolobserver.cpp
+++ b/src/revisioncontrolobserver.cpp
@@ -131,6 +131,14 @@ QList<QAction*> RevisionControlObserver::contextMenuActions(const KFileItemList&
if (m_dolphinModel->hasRevisionData() && (m_plugin != 0)) {
return m_plugin->contextMenuActions(items);
}
+ return QList<QAction*>();
+}
+
+QList<QAction*> RevisionControlObserver::contextMenuActions(const QString& directory) const
+{
+ if (m_dolphinModel->hasRevisionData() && (m_plugin != 0)) {
+ return m_plugin->contextMenuActions(directory);
+ }
return QList<QAction*>();
}