logic: fixed showing Windows console and getting stuck while quitting

* fixed Sourcetrail being stuck while closing the application
* building Sourcetrail as Console application by default
* hiding console during runtime on Windows if Sourcetrail is started with GUI
This commit is contained in:
malte_langkabel
2017-08-10 17:09:47 +02:00
parent ba4e07e361
commit 42b286909d
5 changed files with 20 additions and 7 deletions
+3 -2
View File
@@ -217,7 +217,6 @@ int main(int argc, char *argv[])
if (commandLineParser.runWithoutGUI())
{
// headless Sourcetrail
QtCoreApplication qtApp(argc, argv);
@@ -291,7 +290,9 @@ int main(int argc, char *argv[])
}
else
{
#ifdef _WIN32
ShowWindow(GetConsoleWindow(), SW_HIDE);
#endif
QtApplication qtApp(argc, argv);
setupApp(argc, argv);