From bfb0b8867e706d7c2168bf0d35b39fca3b209d6f Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 13 Mar 2015 21:27:11 -0400 Subject: Make sure to clean up any broken sym-links in the favorites directory when the user button is clicked. This needs to be automated/moved once the new favorites system is set in place later. --- lumina-desktop/panel-plugins/userbutton/UserWidget.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lumina-desktop/panel-plugins') diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp index 82a06012..1ee0b211 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp @@ -194,6 +194,16 @@ void UserWidget::updateFavItems(){ connect(it, SIGNAL(RemovedShortcut()), this, SLOT(updateFavItems()) ); } static_cast(ui->scroll_fav->widget()->layout())->addStretch(); + + //Clean up any broken sym-links in the favorites directory + items = favdir.entryInfoList(QDir::System | QDir::NoDotAndDotDot, QDir::Name); + for(int i=0; i