From eba273a4cef682fafd418f6d18b9ee9d12ece9cc Mon Sep 17 00:00:00 2001
From: Eike Hein <hein@kde.org>
Date: Sat, 13 Dec 2014 17:46:43 +0100
Subject: [PATCH 12/24] Raise the main window when re-running.
BUG:341705
---
src/main.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main.cpp b/src/main.cpp
index 66d709d..538f4e3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -152,5 +152,9 @@ int main(int argc, char* argv[])
aboutData.processCommandLine(&cmdLineParser);
app.newInstance(&cmdLineParser);
+ QObject::connect(&dbusService, &KDBusService::activateRequested,
+ app.instance()->getMainWindow(), &MainWindow::activateWindow,
+ Qt::DirectConnection);
+
return app.exec();
}
--
2.1.0