mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Fix potential race condition. Closes #4742.
This commit is contained in:
@@ -354,8 +354,8 @@ void showSplashScreen()
|
|||||||
painter.setFont(QFont("Arial", 22, QFont::Black));
|
painter.setFont(QFont("Arial", 22, QFont::Black));
|
||||||
painter.drawText(224 - painter.fontMetrics().width(version), 270, version);
|
painter.drawText(224 - painter.fontMetrics().width(version), 270, version);
|
||||||
QSplashScreen *splash = new QSplashScreen(splash_img);
|
QSplashScreen *splash = new QSplashScreen(splash_img);
|
||||||
QTimer::singleShot(1500, splash, SLOT(deleteLater()));
|
|
||||||
splash->show();
|
splash->show();
|
||||||
|
QTimer::singleShot(1500, splash, SLOT(deleteLater()));
|
||||||
qApp->processEvents();
|
qApp->processEvents();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user