From 54b841f78972b10933059691a0a2b262b0bfc901 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 17 Oct 2023 08:53:25 +0200 Subject: [PATCH] QtSupport: Store Qt versions after autodetection on startup Restores old behavior. When QC is started with a Qt in PATH but without existing settings it ran the autodetection and stored the Qt versions to disk. This made it possible to restart QC later with the same settingspath, but without having Qt in PATH. Without this patch the Qt versions of QC only got persisted if the settings dialog had been opened at least once and closed with Ok (or an explicit Apply). Change-Id: I74bd9bc0b96d5ff66e5a81200d6a269a5411a5ea Reviewed-by: hjk --- src/plugins/qtsupport/qtversionmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp index 3a4209cee83..88c88ae15a0 100644 --- a/src/plugins/qtsupport/qtversionmanager.cpp +++ b/src/plugins/qtsupport/qtversionmanager.cpp @@ -155,6 +155,8 @@ void QtVersionManagerImpl::triggerQtVersionRestore() // in that case figure out if there's a qt in path // and add it to the Qt versions findSystemQt(); + if (m_versions.size()) + saveQtVersions(); } {