From f0329368f99b3ca560572c6c19610759db54298c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Wed, 4 Mar 2015 11:56:42 -0800 Subject: [PATCH] plugin-mount: Use only one icon instead a list of possible ones 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. --- plugin-mount/mountbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-mount/mountbutton.cpp b/plugin-mount/mountbutton.cpp index 69945d185..81c550d23 100644 --- a/plugin-mount/mountbutton.cpp +++ b/plugin-mount/mountbutton.cpp @@ -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);