Allow to open log window via command line to already running client

Issue: #4098
This commit is contained in:
Olivier Goffart 2018-12-03 11:20:46 +01:00 committed by Kevin Ottens
parent 687eb9665d
commit feb770eca7
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -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) {