Commit 2b822a06 authored by Sebastian Kügler's avatar Sebastian Kügler
Browse files

Bring window to front when second instance would be started

This install a handler to KDBusService::activateRequested which brings
up the systemsettings window when a second instance is started.

Needs 7446dacc1 from kdbusaddons to be effective.

BUG:332532
parent 47d56be1
......@@ -25,7 +25,10 @@ SystemSettingsApp::SystemSettingsApp(int& argc, char* argv[])
, window(0)
{
setOrganizationDomain("kde.org");
new KDBusService(KDBusService::Unique, this);
KDBusService* service = new KDBusService(KDBusService::Unique, this);
QObject::connect(service, &KDBusService::activateRequested, this, [=]() {
window->activateWindow();
} );
}
SystemSettingsApp::~SystemSettingsApp()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment