aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-13 06:42:29 -0400
committerKen Moore <ken@pcbsd.org>2015-03-13 06:42:29 -0400
commit62cc7a3cdaa759a563d61ff875d3014bafdda28e (patch)
tree64d9d56462d9bd68d3fae38781e265ed0ca3b537 /lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
parentAdd Checksum support for FreeBSD, and tie it into lumina-fm. (diff)
downloadlumina-62cc7a3cdaa759a563d61ff875d3014bafdda28e.tar.gz
lumina-62cc7a3cdaa759a563d61ff875d3014bafdda28e.tar.bz2
lumina-62cc7a3cdaa759a563d61ff875d3014bafdda28e.zip
Make sure that files visible in the userbutton have the appropriate icons based on the mimetype.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp b/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
index 53fdb950..a04c6e43 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
+++ b/lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp
@@ -30,7 +30,7 @@ UserItemWidget::UserItemWidget(QWidget *parent, QString itemPath, bool isDir, bo
}
}else{
if(itemPath.endsWith("/")){ itemPath.chop(1); }
- icon->setPixmap( LXDG::findMimeIcon(itemPath.section("/",-1).section(".",-1)).pixmap(32,32) );
+ icon->setPixmap( LXDG::findMimeIcon(itemPath.section("/",-1)).pixmap(32,32) );
name->setText( this->fontMetrics().elidedText(itemPath.section("/",-1), Qt::ElideRight, 180) );
}
linkPath = QFile::symLinkTarget(itemPath);
bgstack15