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);
|
||||
|
||||
if (!later)
|
||||
m_parent->close();
|
||||
{
|
||||
RunOnObject(m_parent, [this] {
|
||||
m_parent->close();
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue