diff options
| author | Peter Penz <[email protected]> | 2009-07-22 19:26:25 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-22 19:26:25 +0000 |
| commit | a9ef4bd96a6aa7f4b730bc0b4ff676c56e382507 (patch) | |
| tree | ab6757d346e5a8171a43f7c095fea51a80d1dffb /src/dolphincontextmenu.cpp | |
| parent | ebf78d6ac26467560e66beeb106d0650aafd60f3 (diff) | |
show the actions of a revision control plugin in the context menu
svn path=/trunk/KDE/kdebase/apps/; revision=1001270
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 251da2c00..69b551493 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -223,6 +223,16 @@ void DolphinContextMenu::openItemContextMenu() popup->addSeparator(); } + // insert revision control actions + DolphinView* view = m_mainWindow->activeViewContainer()->view(); + const QList<QAction*> revControlActions = view->revisionControlActions(m_selectedItems); + if (revControlActions.count() > 0) { + foreach (QAction* action, revControlActions) { + popup->addAction(action); + } + popup->addSeparator(); + } + // insert 'Copy To' and 'Move To' sub menus if (DolphinSettings::instance().generalSettings()->showCopyMoveMenu()) { m_copyToMenu.setItems(m_selectedItems); |
