diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-13 06:42:29 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-13 06:42:29 -0400 |
commit | 62cc7a3cdaa759a563d61ff875d3014bafdda28e (patch) | |
tree | 64d9d56462d9bd68d3fae38781e265ed0ca3b537 | |
parent | Add Checksum support for FreeBSD, and tie it into lumina-fm. (diff) | |
download | lumina-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.
-rw-r--r-- | lumina-desktop/panel-plugins/userbutton/UserItemWidget.cpp | 2 |
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); |