diff options
author | Eike Ziller <eike.ziller@qt.io> | 2023-02-06 12:52:19 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2023-02-07 08:00:40 +0000 |
commit | c1656c2f3c2193a902d31048c3a115254bb99528 (patch) | |
tree | 3e56050c58cda0ce6dfe253267ebdb48065f4440 | |
parent | 97323e14f0fc69621bfefa567646e20424969518 (diff) |
UpdateInfo: Fix never ending progress spinner in settings
When searching for updates from the settings page. We need to always
send the signal that the search finished.
Fixes: QTCREATORBUG-28745
Change-Id: Ia4c764081916fdde4175799ab6d74fb7c4045810
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r-- | src/plugins/updateinfo/updateinfoplugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/updateinfo/updateinfoplugin.cpp b/src/plugins/updateinfo/updateinfoplugin.cpp index f5d234dcff..2f1cdb6d37 100644 --- a/src/plugins/updateinfo/updateinfoplugin.cpp +++ b/src/plugins/updateinfo/updateinfoplugin.cpp @@ -192,6 +192,8 @@ void UpdateInfoPlugin::startCheckForUpdates() void UpdateInfoPlugin::stopCheckForUpdates() { + emit checkForUpdatesRunningChanged(false); + if (!d->m_maintenanceToolProcess) return; @@ -199,7 +201,6 @@ void UpdateInfoPlugin::stopCheckForUpdates() d->m_maintenanceToolProcess.reset(); d->m_updateOutput.clear(); d->m_packagesOutput.clear(); - emit checkForUpdatesRunningChanged(false); } static void showUpdateInfo(const QList<Update> &updates, const std::function<void()> &startUpdater) |