[Qt] fix a bug where the SplashScreen will not be hidden during startup

This commit is contained in:
Jonas Schnelli 2016-06-21 10:54:57 +02:00
parent 2759597bc8
commit b3e1348c46
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC

View File

@ -141,6 +141,11 @@ SplashScreen::~SplashScreen()
void SplashScreen::slotFinish(QWidget *mainWin)
{
Q_UNUSED(mainWin);
/* If the window is minimized, hide() will be ignored. */
/* Make sure we de-minimize the splashscreen window before hiding */
if (isMinimized())
showNormal();
hide();
}