diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-14 08:03:35 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-14 08:03:35 -0400 |
commit | 49dc5b8575ae610ec0ad9208d3e8f55e46d9c815 (patch) | |
tree | 4a08780bc6e55fa136b3a7b91ead2dae47e71f7b /lumina-desktop/panel-plugins/userbutton/UserWidget.cpp | |
parent | Truncate the timezone country names to 20 characters. (more than enough to se... (diff) | |
download | lumina-49dc5b8575ae610ec0ad9208d3e8f55e46d9c815.tar.gz lumina-49dc5b8575ae610ec0ad9208d3e8f55e46d9c815.tar.bz2 lumina-49dc5b8575ae610ec0ad9208d3e8f55e46d9c815.zip |
Revert the previous update with regards to the removal of broken "favorite" sym-links. There are many cases where the user would want to keep those links around even when the location it points at is not available at the moment.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserWidget.cpp')
-rw-r--r-- | lumina-desktop/panel-plugins/userbutton/UserWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp index 1ee0b211..52d60714 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp @@ -196,13 +196,13 @@ void UserWidget::updateFavItems(){ static_cast<QBoxLayout*>(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); + /*items = favdir.entryInfoList(QDir::System | QDir::NoDotAndDotDot, QDir::Name); for(int i=0; i<items.length(); i++){ if(items[i].isSymLink() && !items[i].exists()){ //Broken sym-link - remove it QFile::remove(items[i].absoluteFilePath()); } - } + }*/ } |