Skip to content

Commit bb952d2

Browse files
committed
Print messages before QCoreApplication
Change-Id: Ia72bbeff9bc8d293ffe0f11689178a900596d352 Reviewed-by: Rainer Keller <[email protected]>
1 parent 45f7ac7 commit bb952d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ int main(int argc, char **argv)
154154
for (int i = 1; i < argc; i++)
155155
args.append(argv[i]);
156156

157-
QCoreApplication app(argc, argv);
158157
QStringList defaultArgs;
159158
quint16 gdbDebugPort = 0;
160159
bool useGDB = false;
@@ -241,6 +240,9 @@ int main(int argc, char **argv)
241240
return 1;
242241
}
243242

243+
// Create QCoreApplication after parameter parsing to prevent printing evaluation
244+
// message to terminal before QtCreator has parsed the output.
245+
QCoreApplication app(argc, argv);
244246
Process process;
245247
process.setConfig(config);
246248
if (gdbDebugPort)

0 commit comments

Comments
 (0)