Debugger: Speed up startup on Windows

The Qt SDK would not write the "Version" tag in the xml file, but the
supported ABI and engine type are set.

Only retrigger the debugger detection only if the version, and the ABI
and engine type are not set.

Change-Id: Ib73b1809f9dc6a16fa1988ee0e40e4d8131c667e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2023-08-28 16:23:16 +02:00
parent 1919580e08
commit 6b312ad54c

View File

@@ -104,7 +104,10 @@ DebuggerItem::DebuggerItem(const Store &data)
&& m_abis[0].osFlavor() == Abi::UnknownFlavor
&& m_abis[0].binaryFormat() == Abi::UnknownFormat;
if (m_version.isEmpty() || mightBeAPreQnxSeparateOSQnxDebugger)
bool needsReinitialization = m_version.isEmpty() && m_abis.isEmpty()
&& m_engineType == NoEngineType;
if (needsReinitialization || mightBeAPreQnxSeparateOSQnxDebugger)
reinitializeFromFile();
}