mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 12:45:46 +00:00
Qt/Updater: Fixed an assert on m_parent->close() (was called from a wrong thread)
This commit is contained in:
parent
4b03790eda
commit
94a19ca670
@ -95,6 +95,11 @@ void Updater::OnUpdateAvailable(const NewVersionInformation& info)
|
|||||||
AutoUpdateChecker::RestartMode::RESTART_AFTER_UPDATE);
|
AutoUpdateChecker::RestartMode::RESTART_AFTER_UPDATE);
|
||||||
|
|
||||||
if (!later)
|
if (!later)
|
||||||
m_parent->close();
|
{
|
||||||
|
RunOnObject(m_parent, [this] {
|
||||||
|
m_parent->close();
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user