Qt: check for updates if the update message is empty

This happens for example if the user canceled the earlier check
after the update was already known, leaving us in a somewhat dirty state.
This commit is contained in:
Megamouse 2024-03-08 18:50:50 +01:00
parent 3056a4db83
commit 86ad4ed6c1

View File

@ -307,7 +307,9 @@ void update_manager::update(bool auto_accept)
{
if (m_update_message.isEmpty())
{
// This can happen if we abort the check_for_updates download. Just check again in this case.
m_downloader->close_progress_dialog();
check_for_updates(false, false, false, m_parent);
return;
}