┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-11-18 13:33:16 +0000
committerPeter Penz <[email protected]>2007-11-18 13:33:16 +0000
commit36c5344dbd4a8d17184b972ea0d6dd32f78d7695 (patch)
treed70d344ef47a682c1385ae738fa61f683d357ba5 /src
parent8ee3363dbcc4d2e9e9f89b2737d26fcea55653a7 (diff)
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: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=738259
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp9
1 files changed, 8 insertions, 1 deletions
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()