diff options
| author | Peter Penz <[email protected]> | 2007-11-18 13:33:16 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-11-18 13:33:16 +0000 |
| commit | 36c5344dbd4a8d17184b972ea0d6dd32f78d7695 (patch) | |
| tree | d70d344ef47a682c1385ae738fa61f683d357ba5 /src | |
| parent | 8ee3363dbcc4d2e9e9f89b2737d26fcea55653a7 (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.cpp | 9 |
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() |
