From 36c5344dbd4a8d17184b972ea0d6dd32f78d7695 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 18 Nov 2007 13:33:16 +0000 Subject: [PATCH] Check whether the shift key is pressed when the "Move to Trash" action is executed. If this is the case, perform the "Delete" action instead (-> works like in Konqi now, thanks to David for the hint) CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=738259 --- src/dolphinmainwindow.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 540fe5e48..361ea7e4f 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -487,7 +487,14 @@ void DolphinMainWindow::rename() void DolphinMainWindow::moveToTrash() { clearStatusBar(); - m_activeViewContainer->view()->trashSelectedItems(); + + DolphinView* view = m_activeViewContainer->view(); + + if (QApplication::keyboardModifiers() & Qt::ShiftModifier) { + view->deleteSelectedItems(); + } else { + view->trashSelectedItems(); + } } void DolphinMainWindow::deleteItems() -- 2.47.3