aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-08-05 15:27:03 -0400
committerKen Moore <moorekou@gmail.com>2015-08-05 15:27:03 -0400
commit4e63029d42dbbeec6f1d574e76bb0de1125ec966 (patch)
tree3d06db412db132ed6ede4240efcb5a67a8b3617d /lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
parentDo a review of all Lumina dependencies and update the list as appropriate: (diff)
downloadlumina-4e63029d42dbbeec6f1d574e76bb0de1125ec966.tar.gz
lumina-4e63029d42dbbeec6f1d574e76bb0de1125ec966.tar.bz2
lumina-4e63029d42dbbeec6f1d574e76bb0de1125ec966.zip
Fix up the file/dir removal options within the userbutton.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
index baf8f6de..ffee7b69 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
+++ b/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
@@ -182,8 +182,11 @@ void UserItemWidget::buttonClicked(){
}else{
QFile::remove(icon->whatsThis());
}
- }else{ LUtils::removeFavorite(icon->whatsThis()); } //This is a favorite
- emit RemovedShortcut();
+ //Don't emit the RemovedShortcut signal here - the automatic ~/Desktop watcher will see the change when finished
+ }else{
+ LUtils::removeFavorite(icon->whatsThis()); //This is a favorite
+ emit RemovedShortcut();
+ }
}
}
bgstack15