[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate] kate: Better window activation with QtSingleApplication
From: Kåre Särs <kare.sars () iki ! fi>
Date: 2016-06-21 21:20:29
Message-ID: E1bFT5x-0002KB-CL () code ! kde ! org
[Download RAW message or body]
Git commit 7918d0de6763c1e9bd012603edf0fdaa1ffbfc61 by Kåre Särs.
Committed on 21/06/2016 at 21:18.
Pushed by sars into branch 'master'.
Better window activation with QtSingleApplication
M +4 -0 kate/kateapp.cpp
M +0 -3 kate/main.cpp
http://commits.kde.org/kate/7918d0de6763c1e9bd012603edf0fdaa1ffbfc61
diff --git a/kate/kateapp.cpp b/kate/kateapp.cpp
index cea0a27..31fe66c 100644
--- a/kate/kateapp.cpp
+++ b/kate/kateapp.cpp
@@ -446,4 +446,8 @@ void KateApp::remoteMessageReceived(const QString &message, QObject *)
}
}
+ if (activeKateMainWindow()) {
+ activeKateMainWindow()->activateWindow();
+ activeKateMainWindow()->raise();
+ }
}
diff --git a/kate/main.cpp b/kate/main.cpp
index fd3cff5..d042817 100644
--- a/kate/main.cpp
+++ b/kate/main.cpp
@@ -548,9 +548,6 @@ int main(int argc, char **argv)
*/
QObject::connect(&app, &SharedTools::QtSingleApplication::messageReceived,
&kateApp, &KateApp::remoteMessageReceived);
-
- QObject::connect(&app, SIGNAL(messageReceived(QString,QObject*)),
- &app, SLOT(activateWindow()));
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic