Commit 040714f4 authored by Andreas Traczyk's avatar Andreas Traczyk

debug: connect console output before initializing lrc/daemon

Change-Id: Ib7c8bdadcf9bb52e9027cc520eee9bbe5913f972
parent 8d459aff
......@@ -120,6 +120,12 @@ main(int argc, char* argv[])
return 0;
}
for (auto string : QCoreApplication::arguments()) {
if (string == "-d" || string == "--debug") {
consoleDebug();
}
}
Utils::removeOldVersions();
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, false);
......@@ -149,9 +155,6 @@ main(int argc, char* argv[])
debugFile.close();
fileDebug(debugFile);
}
if (string == "-d" || string == "--debug") {
consoleDebug();
}
#ifdef _MSC_VER
if (string == "-c" || string == "--vsconsole") {
vsConsoleDebug();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment