indicator: move KDBusService::Unique call to make sure it works on Windows
This commit is contained in:
parent
9031ccadc3
commit
ad35ae75d9
1 changed files with 2 additions and 2 deletions
|
@ -42,6 +42,8 @@ int main(int argc, char** argv)
|
|||
i18n("(C) 2016 Aleix Pol Gonzalez"));
|
||||
KAboutData::setApplicationData(about);
|
||||
|
||||
KDBusService dbusService(KDBusService::Unique);
|
||||
|
||||
// Trigger loading the KIconLoader plugin
|
||||
about.setProgramLogo(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg")));
|
||||
|
||||
|
@ -61,8 +63,6 @@ int main(int argc, char** argv)
|
|||
return -1;
|
||||
}
|
||||
|
||||
KDBusService dbusService(KDBusService::Unique);
|
||||
|
||||
DevicesModel model;
|
||||
model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired);
|
||||
QMenu* menu = new QMenu;
|
||||
|
|
Loading…
Reference in a new issue