diff options
Diffstat (limited to 'lumina-desktop')
-rw-r--r-- | lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp index 467b802b..991abf2e 100644 --- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp +++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp @@ -97,7 +97,11 @@ void DesktopViewPlugin::cutItems(){ void DesktopViewPlugin::deleteItems(){ QList<QListWidgetItem*> sel = list->selectedItems(); for(int i=0; i<sel.length(); i++){ - QFile::remove(sel[i]->whatsThis()); + if(QFileInfo(sel[i]->whatsThis()).isDir()){ + QProcess::startDetached("rm -r \""+sel[i]->whatsThis()+"\""); + }else{ + QFile::remove(sel[i]->whatsThis()); + } } } |