@@ -22,18 +22,6 @@ int main(int argc, char *argv[])
2222
2323 QApplication a (argc, argv);
2424 a.setWindowIcon (QIcon (" :/icons/Resources/falconG-icon.png" ));
25- // Splash Screen
26- // SplashControl* splashControl = new SplashControl();
27- // splashControl->Start();
28-
29- splashScreen = new QSplashScreen (QPixmap (" :/icons/Resources/falconG-splash.png" ));
30- splashScreen->setWindowFlag (Qt::WindowStaysOnTopHint);
31- splashScreen->show ();
32- Qt::Alignment topRight = Qt::AlignHCenter | Qt::AlignBottom;
33- splashScreen->showMessage (QObject::tr (" falconG - Setting up..\n\n\n " ), topRight, Qt::white);
34-
35- a.processEvents ();
36-
3725 PROGRAM_CONFIG::GetHomePath ();
3826
3927 // after a new translation is added add language radio boxes
@@ -62,12 +50,23 @@ int main(int argc, char *argv[])
6250 if (!a.installTranslator (&translator))
6351 QMessageBox::warning (nullptr , " falconG - Warning" , " Can't load language " + qs + " using default" );
6452 }
53+ // Splash Screen
54+ splashScreen = new QSplashScreen (QPixmap (" :/icons/Resources/falconG-splash.png" ));
55+ splashScreen->setWindowFlag (Qt::WindowStaysOnTopHint);
56+ splashScreen->show ();
57+ Qt::Alignment topRight = Qt::AlignHCenter | Qt::AlignBottom;
58+ splashScreen->showMessage (QObject::tr (" falconG - Setting up...\n\n\n " ), topRight, Qt::white);
59+
60+ a.processEvents ();
61+
6562 FalconG w;
6663 w.show ();
6764
6865 splashScreen->finish (&w);
6966 delete splashScreen;
7067 splashScreen = nullptr ;
71-
68+ w.raise ();
69+ w.activateWindow ();
7270 return a.exec ();
7371}
72+
0 commit comments