Skip to content
Snippets Groups Projects
Commit 50db3ef0 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

COMP: (Mv2) Fixed error due to splash-screen disabling.

parent 8dc6b269
Branches
Tags
No related merge requests found
......@@ -32,6 +32,8 @@
#include <QPixmap>
#include <QSplashScreen>
#define USE_SPLASH_SCREEN 0
//
// System includes (sorted by alphabetic order)
......@@ -68,7 +70,7 @@ main( int argc, char* argv[] )
//
// 0. Splash-screen.
#if !defined( _DEBUG ) && 0
#if !defined( _DEBUG ) && USE_SPLASH_SCREEN
QPixmap pixmap(QLatin1String( ":/images/application_splash" ));
QSplashScreen splash(pixmap);
splash.show();
......@@ -203,13 +205,16 @@ main( int argc, char* argv[] )
// Usefull when developping/debugging to avoid overlapping other windows.
mainWindow.show();
#else
#else // _DEBUG
#if USE_SPLASH_SCREEN
splash.finish( &mainWindow );
#endif // USE_SPLASH_SCREEN
// TODO: Correctly manage main-window state via application settings.
mainWindow.showMaximized();
#endif
#endif // _DEBUG
//
// 6. Check OpenGL capabilities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment