From afcd2ddc0fe012cffe6fa478dbea19c599c32687 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 20 Aug 2015 17:17:18 -0400 Subject: Oops, make sure that applauncher/desktop icon check is run before deleting the desktop file (just in case the user simply unchecked the icon generation option). --- lumina-desktop/LDesktop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lumina-desktop/LDesktop.cpp') diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp index a326cbcb..cc3e8ed5 100644 --- a/lumina-desktop/LDesktop.cpp +++ b/lumina-desktop/LDesktop.cpp @@ -578,7 +578,8 @@ void LDesktop::DesktopPluginRemoved(QString ID, bool internal){ //qDebug() << "- found ID"; if(DEBUG){ qDebug() << " - Deleting Desktop Plugin:" << ID; } //Special check for auto-generated desktop icons - if(ID.startsWith("applauncher::") && (ID.section("::",1,1).section("---",0,0).section("/",0,-1) == (QDir::homePath()+"/Desktop") ) ){ + if(ID.startsWith("applauncher::")){ + qDebug() << "Desktop Icon Removal:" << !internal; PLUGINS[i]->removeSettings(!internal); //Only remove the file if an external removal on an auto-generated shortcut }else{ PLUGINS[i]->removeSettings(true); //Remove any settings associated with this plugin -- cgit