Hardcode a path to find the icon in on Windows

This commit is contained in:
Aleix Pol 2017-05-24 19:25:48 +02:00 committed by Albert Vaca
parent f01f751708
commit a30adbe465

View file

@ -63,7 +63,11 @@ DeviceIndicator::DeviceIndicator(DeviceDbusInterface* device)
: QMenu(device->name(), nullptr) : QMenu(device->name(), nullptr)
, m_device(device) , m_device(device)
{ {
#ifdef Q_OS_WIN
setIcon(QIcon(QStandardPaths::locate(QStandardPaths::AppDataLocation, "icons/hicolor/scalable/apps/kdeconnect.svgz")));
#else
setIcon(QIcon::fromTheme(device->iconName())); setIcon(QIcon::fromTheme(device->iconName()));
#endif
connect(device, SIGNAL(nameChanged(QString)), this, SLOT(setText(QString))); connect(device, SIGNAL(nameChanged(QString)), this, SLOT(setText(QString)));