From feb770eca70817962b4f0251d15ab41b6eb3aa42 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 3 Dec 2018 11:20:46 +0100 Subject: [PATCH] Allow to open log window via command line to already running client Issue: #4098 --- src/gui/application.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) {