]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Allow moving items to trash also for non-local files
authorPeter Penz <peter.penz19@gmail.com>
Fri, 11 May 2012 14:23:49 +0000 (16:23 +0200)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 11 May 2012 14:26:34 +0000 (16:26 +0200)
See bug 188032 for an ongoing discussion. In case if this behavior
is really not wanted by users (the feedback on bugs.kde.org will
show), the review-request
https://git.reviewboard.kde.org/r/104915/ should be merged too
(after adjusting some parts of the code).

src/dolphincontextmenu.cpp
src/dolphincontextmenu.h

index 286d304c5217cf4034fe835b6413c655c2925cdb..670062250a86ba6ea322da1e5a03207d46e2a208 100644 (file)
@@ -559,7 +559,7 @@ void DolphinContextMenu::updateRemoveAction()
 
 bool DolphinContextMenu::moveToTrash() const
 {
-    return selectedItemsProperties().isLocal() && !m_shiftPressed;
+    return !m_shiftPressed;
 }
 
 #include "dolphincontextmenu.moc"
index 9e8b804cd4937c62a70f7a10347553b419d9a2aa..75a6e35e856dbc8cf55fa871f6d258250c6624a8 100644 (file)
@@ -176,8 +176,8 @@ private:
     void updateRemoveAction();
 
     /**
-     * @return True if no shift key has been pressed and the selection represents
-     *         only local files.
+     * @return True if a moving to the trash should be done instead of
+     *         deleting the selected items.
      * @see updateRemoveAction(), slotRemoveActionTriggered()
      */
     bool moveToTrash() const;