diff options
| author | Peter Penz <[email protected]> | 2011-09-10 18:08:03 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-10 18:11:09 +0200 |
| commit | ff243261742ecd70fb9e417614e757b5956c04aa (patch) | |
| tree | 5ea6591846826b8b7f26179dc69bd2fab06c8ce5 /src/views/dolphinview.cpp | |
| parent | c7272df5c17c804fd379e4bac2758850f03695da (diff) | |
Provide KVersionControlPlugin version 2
Based on the work of Vishesh Yadav some extensions where required
for the KVersionControlPlugin interface that have found there way
now into KVersionControlPlugin2.
Beside some interface cleanups it is now possible that a version
control plugin may also provide context actions for directories or
files that are not versioned yet.
REVIEW: 102541
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index a53934ddc..7cb594d8e 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -521,10 +521,10 @@ QList<QAction*> DolphinView::versionControlActions(const KFileItemList& items) c QList<QAction*> actions; if (items.isEmpty()) { - const KUrl url = fileItemModel()->rootDirectory(); - actions = m_versionControlObserver->contextMenuActions(url.path(KUrl::AddTrailingSlash)); + const KFileItem item = fileItemModel()->rootItem(); + actions = m_versionControlObserver->actions(KFileItemList() << item); } else { - actions = m_versionControlObserver->contextMenuActions(items); + actions = m_versionControlObserver->actions(items); } return actions; |
