[Qt] fix a bug where the SplashScreen will not be hidden during startup
This commit is contained in:
committed by
lateminer
parent
67b56c68b5
commit
b63095623e
@@ -133,6 +133,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();
|
||||
deleteLater(); // No more need for this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user