Skip to content

Commit

Permalink
plugin-mount: Use only one icon instead a list of possible ones
Browse files Browse the repository at this point in the history
Using more than one icon can lead to icons not being show, depending on the
theme set when XdgIcon::fromTheme() is executed, although it may exits on
the theme.
QIconloaderEngine only stores the icon it founded when XdgIcon::fromTheme()
was executed. When the theme changes QIconLoader will only search for the
icon name it stored when XdgIcon::fromTheme() was executed.
  • Loading branch information
luis-pereira committed Mar 4, 2015
1 parent 12620bb commit f032936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-mount/mountbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
MountButton::MountButton(QWidget * parent) :
QToolButton(parent)
{
setIcon(XdgIcon::fromTheme(QStringList() << "device-notifier" << "drive-removable-media-usb" << "drive-removable-media"));
setIcon(XdgIcon::fromTheme(QStringLiteral("drive-removable-media")));

setToolTip(tr("Removable media/devices manager"));
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
Expand Down

0 comments on commit f032936

Please sign in to comment.