diff options
author | Ken Moore <ken@ixsystems.com> | 2017-05-25 14:58:11 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-05-25 14:58:11 -0400 |
commit | d6189ad18d10a7ee8e994c04cdcdd3ce7ed5c50e (patch) | |
tree | 0c202d7129bb1300ce277f931cfb5049875fb5a6 /src-qt5/core/lumina-desktop/desktop-plugins | |
parent | Try to detect/fix the fullscreen/background window issue on Fluxbox. (diff) | |
parent | Add in New Dir, New File, and Paste functionality to the desktop itself (if i... (diff) | |
download | lumina-d6189ad18d10a7ee8e994c04cdcdd3ce7ed5c50e.tar.gz lumina-d6189ad18d10a7ee8e994c04cdcdd3ce7ed5c50e.tar.bz2 lumina-d6189ad18d10a7ee8e994c04cdcdd3ce7ed5c50e.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/lumina-desktop/desktop-plugins')
-rw-r--r-- | src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp index 1730dbaa..266025c5 100644 --- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp +++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp @@ -203,7 +203,8 @@ void AppLauncherPlugin::fileProperties(){ void AppLauncherPlugin::fileDelete(){ QString path = button->whatsThis(); if(path.isEmpty() || !QFile::exists(path)){ return; } //invalid file - QFile::remove(path); + if(QFileInfo(path).isDir()){ QProcess::startDetached("rm -r \""+path+"\""); } + else{ QFile::remove(path); } } void AppLauncherPlugin::fileCut(){ |