[Pkg-owncloud-commits] [owncloud-client] 434/498: Startup: Don't notify other instance when session restored #3070
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 7da4a081d30fe14ab47fcab304733dd59ce0bbd3
Author: Markus Goetz <markus at woboq.com>
Date: Mon Aug 3 17:32:41 2015 +0200
Startup: Don't notify other instance when session restored #3070
---
src/gui/main.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index b505fb0..c1f13fe 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -84,6 +84,11 @@ int main(int argc, char **argv)
// if the application is already running, notify it.
if(app.isRunning()) {
qDebug() << Q_FUNC_INFO << "Already running, exiting...";
+ if (app.isSessionRestored()) {
+ qDebug() << "Session was restored, don't notify app!";
+ return -1;
+ }
+
QStringList args = app.arguments();
if (args.size() > 1) {
QString msg = args.join(QLatin1String("|"));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list