]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Move the "Add to Places" action upwards when used on the viewport to stay consistent...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 9 Oct 2010 15:39:41 +0000 (15:39 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 9 Oct 2010 15:39:41 +0000 (15:39 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1184250

src/dolphincontextmenu.cpp

index ae5bf8698aff97562b840220e7b28b60dc0ab36c..20be6f4e8e1c616137f776e43606e13d6e022114 100644 (file)
@@ -325,6 +325,14 @@ void DolphinContextMenu::openViewportContextMenu()
     // "open_in_new_tab" here, as the current selection should get ignored.
     m_popup->addAction(m_mainWindow->actionCollection()->action("new_window"));
     m_popup->addAction(m_mainWindow->actionCollection()->action("new_tab"));
+
+    // Insert 'Add to Places' entry if exactly one item is selected
+    QAction* addToPlacesAction = 0;
+    if (!placeExists(m_mainWindow->activeViewContainer()->url())) {
+        addToPlacesAction = m_popup->addAction(KIcon("bookmark-new"),
+                                             i18nc("@action:inmenu Add current folder to places", "Add to Places"));
+    }
+
     m_popup->addSeparator();
 
     QAction* pasteAction = createPasteAction();
@@ -340,13 +348,6 @@ void DolphinContextMenu::openViewportContextMenu()
 
     addVersionControlActions();
 
-    // insert 'Add to Places' entry if exactly one item is selected
-    QAction* addToPlacesAction = 0;
-    if (!placeExists(m_mainWindow->activeViewContainer()->url())) {
-        addToPlacesAction = m_popup->addAction(KIcon("bookmark-new"),
-                                             i18nc("@action:inmenu Add current folder to places", "Add to Places"));
-    }
-
     addCustomActions();
 
     QAction* propertiesAction = m_popup->addAction(i18nc("@action:inmenu", "Properties"));