From 1bafe0633b84676adf0c7f2d5f3113d021e81939 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 24 May 2017 21:01:43 -0400 Subject: Add in New Dir, New File, and Paste functionality to the desktop itself (if it represents the desktop folder), and also verify that the monitor ID migrator works properly when the single-monitor id changes between sessions. --- .../lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-desktop/desktop-plugins') 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(){ -- cgit