Skip to content

Commit

Permalink
Splash Screen window: make sure that OpenCOR has been initialised on …
Browse files Browse the repository at this point in the history
…Windows.

Indeed, on Windows, we never try the CLI version of OpenCOR (since we have a special main.cpp for it), which means that OpenCOR was not initialised as an application prior to showing our splash screen.
  • Loading branch information
agarny committed Dec 21, 2019
1 parent adc6df3 commit 1610308
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.cpp
Expand Up @@ -199,6 +199,12 @@ int main(int pArgC, char *pArgV[])
return 0;
}

// Initialise the GUI version of OpenCOR

QString appDate = QString();

OpenCOR::initApplication(&appDate);

// Create and show our splash screen, if we are not in debug mode

#ifndef QT_DEBUG
Expand All @@ -209,12 +215,6 @@ int main(int pArgC, char *pArgV[])
guiApp->processEvents();
#endif

// Initialise the GUI version of OpenCOR

QString appDate = QString();

OpenCOR::initApplication(&appDate);

// Check whether we want to check for new versions at startup and, if so,
// whether a new version of OpenCOR is available

Expand Down

0 comments on commit 1610308

Please sign in to comment.