1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Fix potential race condition. Closes #4742.

This commit is contained in:
Chocobo1 2016-02-04 00:39:10 +08:00
parent 6054e05e70
commit 48d2beece5

View File

@ -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