mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-11 08:54:33 +00:00
Qt: Fix crash on updater exit
This commit is contained in:
@@ -567,8 +567,8 @@ void AutoUpdaterDialog::downloadUpdateClicked()
|
||||
|
||||
if (processUpdate(response))
|
||||
{
|
||||
// updater started, request exit
|
||||
g_main_window->requestExit(false);
|
||||
// updater started, request exit. can't do it immediately as closing the main window will delete us.
|
||||
QMetaObject::invokeMethod(g_main_window, &MainWindow::requestExit, Qt::QueuedConnection, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user