mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix potential race condition. Closes #4742.
This commit is contained in:
parent
6054e05e70
commit
48d2beece5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue