aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-09 12:46:32 -0400
committerKen Moore <moorekou@gmail.com>2015-07-09 12:46:32 -0400
commitc90d7930b92a59e7ba51cd67e3063553f1f8cd8b (patch)
tree72064182b334e185ed17471fc0dce4794720a507 /lumina-desktop/panel-plugins/userbutton
parentLarge update to the usermanager: (diff)
downloadlumina-c90d7930b92a59e7ba51cd67e3063553f1f8cd8b.tar.gz
lumina-c90d7930b92a59e7ba51cd67e3063553f1f8cd8b.tar.bz2
lumina-c90d7930b92a59e7ba51cd67e3063553f1f8cd8b.zip
Oops, forgot that when browsing the ~/Desktop directory some special rules need to be considered with regards to favorite status.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
index a16e9378..1ea1a864 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
+++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.cpp
@@ -322,13 +322,13 @@ void UserWidget::updateHome(){
}
ui->label_home_dir->setToolTip(ui->label_home_dir->whatsThis());
items << homedir.entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot, QDir::Name | QDir::DirsFirst);
- QString type = "dir";
+ QString type = "";
if(homedir.absolutePath() == QDir::homePath()+"/Desktop"){ type.append("-home"); }//internal code
for(int i=0; i<items.length(); i++){
//qDebug() << "New Home subdir:" << homedir.absoluteFilePath(items[i]);
UserItemWidget *it;
- if(items[i].startsWith("/")){ it = new UserItemWidget(ui->scroll_home->widget(), items[i], type, true); }
- else{ it = new UserItemWidget(ui->scroll_home->widget(), homedir.absoluteFilePath(items[i]), "", false); }
+ if(items[i].startsWith("/")){ it = new UserItemWidget(ui->scroll_home->widget(), items[i], "dir", true); } //go-back button
+ else{ it = new UserItemWidget(ui->scroll_home->widget(), homedir.absoluteFilePath(items[i]), type, false); }
ui->scroll_home->widget()->layout()->addWidget(it);
connect(it, SIGNAL(RunItem(QString)), this, SLOT(slotGoToDir(QString)) );
connect(it, SIGNAL(NewShortcut()), this, SLOT(updateFavItems()) );
bgstack15