Fix splash screen staying on top of all windows. Closes #1391.

This commit is contained in:
sledgehammer999
2016-01-25 15:59:20 +02:00
parent 9c50ea14cb
commit 51b93b4284

View File

@@ -365,7 +365,7 @@ void showSplashScreen()
painter.setPen(QPen(Qt::white));
painter.setFont(QFont("Arial", 22, QFont::Black));
painter.drawText(224 - painter.fontMetrics().width(version), 270, version);
QSplashScreen *splash = new QSplashScreen(splash_img, Qt::WindowStaysOnTopHint);
QSplashScreen *splash = new QSplashScreen(splash_img);
QTimer::singleShot(1500, splash, SLOT(deleteLater()));
splash->show();
qApp->processEvents();