diff --git a/src/gui/application.cpp b/src/gui/application.cpp index e25f1c280..90f81d45d 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -520,8 +520,12 @@ void Application::slotParseMessage(const QString &msg, QObject *) if (msg.startsWith(QLatin1String("MSG_PARSEOPTIONS:"))) { const int lengthOfMsgPrefix = 17; QStringList options = msg.mid(lengthOfMsgPrefix).split(QLatin1Char('|')); + _showLogWindow = false; parseOptions(options); setupLogging(); + if (_showLogWindow) { + _gui->slotToggleLogBrowser(); // _showLogWindow is set in parseOptions. + } } else if (msg.startsWith(QLatin1String("MSG_SHOWMAINDIALOG"))) { qCInfo(lcApplication) << "Running for" << _startedAt.elapsed() / 1000.0 << "sec"; if (_startedAt.elapsed() < 10 * 1000) {