┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-04-02 19:49:04 +0000
committerPeter Penz <[email protected]>2008-04-02 19:49:04 +0000
commit3db73a2d153f9fe3c8cab8ef70e106b833a269b7 (patch)
tree2cb5e7a4264606fcc7f01d6b9750cee8f8cdc49a /src/dolphincontextmenu.cpp
parent762418b05a7dea8f7d37813c23ae2a0ef68bd101 (diff)
Thanks to David Faure the 'Copy To' and 'Move To' menus in the context menu can also be used by Dolphin now :-) In opposite to Konqueror the sub menus are turned off per default.
Minor issue: the Dolphin context menu should take care about the protocol capabilities (copy, move, delete, ...) like in konq_popupmenu (I'll fix this before 4.1). CCMAIL: [email protected] BUG: 155969 svn path=/trunk/KDE/kdebase/apps/; revision=792995
Diffstat (limited to 'src/dolphincontextmenu.cpp')
-rw-r--r--src/dolphincontextmenu.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index 6ee2c1672..41673e182 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -24,6 +24,7 @@
#include "dolphinsettings.h"
#include "dolphinview.h"
#include "dolphinviewcontainer.h"
+#include "dolphin_generalsettings.h"
#include <kactioncollection.h>
#include <kfileplacesmodel.h>
@@ -185,8 +186,16 @@ void DolphinContextMenu::openItemContextMenu()
// Insert 'Actions' sub menu
KonqMenuActions menuActions;
menuActions.setItems(m_selectedItems);
- if (menuActions.addActionsTo(popup))
+ if (menuActions.addActionsTo(popup)) {
popup->addSeparator();
+ }
+
+ // Insert 'Copy To' and 'Move To' sub menus
+ if (DolphinSettings::instance().generalSettings()->showCopyMoveMenu()) {
+ m_copyToMenu.setItems(m_selectedItems);
+ m_copyToMenu.addActionsTo(popup);
+ popup->addSeparator();
+ }
// insert 'Properties...' entry
QAction* propertiesAction = m_mainWindow->actionCollection()->action("properties");