From 48d2beece50ee483043d28278186ffd70bdcc3de Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 4 Feb 2016 00:39:10 +0800 Subject: [PATCH] Fix potential race condition. Closes #4742. --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index d408ad4a2..949de23cf 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -354,8 +354,8 @@ void showSplashScreen() painter.setFont(QFont("Arial", 22, QFont::Black)); painter.drawText(224 - painter.fontMetrics().width(version), 270, version); QSplashScreen *splash = new QSplashScreen(splash_img); - QTimer::singleShot(1500, splash, SLOT(deleteLater())); splash->show(); + QTimer::singleShot(1500, splash, SLOT(deleteLater())); qApp->processEvents(); } #endif