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:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user