]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Do not delete files when Shift-clicking "Trash"
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 9 Jun 2013 09:53:59 +0000 (11:53 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 9 Jun 2013 09:53:59 +0000 (11:53 +0200)
Thanks to Dawit Alemayehu for making this fix possible with commit
8e023ae9e5051cb7b81af86a178e37c1f2c5da94 !

BUG: 307254
FIXED-IN: 4.11.0

src/views/dolphinviewactionhandler.cpp

index 730723785e78fbd423c1ab33454c64c1a5409483..9a9718c3336869693105866c5622200ad0c508b4 100644 (file)
@@ -314,14 +314,7 @@ void DolphinViewActionHandler::slotRename()
 void DolphinViewActionHandler::slotTrashActivated(Qt::MouseButtons, Qt::KeyboardModifiers modifiers)
 {
     emit actionBeingHandled();
-    // Note: kde3's konq_mainwindow.cpp used to check
-    // reason == KAction::PopupMenuActivation && ...
-    // but this isn't supported anymore
-    if (modifiers & Qt::ShiftModifier) {
-        m_currentView->deleteSelectedItems();
-    } else {
-        m_currentView->trashSelectedItems();
-    }
+    m_currentView->trashSelectedItems();
 }
 
 void DolphinViewActionHandler::slotDeleteItems()