diff options
author | Ken Moore <moorekou@gmail.com> | 2015-08-05 15:27:03 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-08-05 15:27:03 -0400 |
commit | 4e63029d42dbbeec6f1d574e76bb0de1125ec966 (patch) | |
tree | 3d06db412db132ed6ede4240efcb5a67a8b3617d /lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp | |
parent | Do a review of all Lumina dependencies and update the list as appropriate: (diff) | |
download | lumina-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.cpp | 7 |
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(); + } } } |