Don't show the settings if another instance is started less than 10 secs after the...
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 15 Oct 2015 12:19:46 +0000 (14:19 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 15 Oct 2015 12:25:23 +0000 (14:25 +0200)
Issue #3273

isSessionRestored was not set correctlty so ignore it

src/gui/application.cpp

index e5bf78777a5f24632d559606b3a450ea2b21cd1e..d0db98ae4facf69583e071fae6e95d3cf362a8b1 100644 (file)
@@ -306,7 +306,7 @@ void Application::slotParseMessage(const QString &msg, QObject*)
         setupLogging();
     } else if (msg.startsWith(QLatin1String("MSG_SHOWSETTINGS"))) {
         qDebug() << "Running for" << _startedAt.elapsed()/1000.0 << "sec";
-        if (isSessionRestored() && _startedAt.elapsed() < 10*1000) {
+        if (_startedAt.elapsed() < 10*1000) {
             // This call is mirrored with the one in int main()
             qWarning() << "Ignoring MSG_SHOWSETTINGS, possibly double-invocation of client via session restore and auto start";
             return;