From: Olivier Goffart Date: Mon, 3 Dec 2018 10:20:46 +0000 (+0100) Subject: Allow to open log window via command line to already running client X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~371 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=feb770eca70817962b4f0251d15ab41b6eb3aa42;p=nextcloud-desktop.git Allow to open log window via command line to already running client Issue: #4098 --- 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) {