diff options
author | Christian Stenger <christian.stenger@qt.io> | 2023-05-09 08:38:54 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2023-05-09 06:50:16 +0000 |
commit | be25db429e7f23d5ec862d8c455ccd381d9255d4 (patch) | |
tree | 426753e11fd348e8d17f5bcdfc02f8321d2c9ba1 | |
parent | dfaebde5207dc2ede076333658f80e0e88f265c8 (diff) | |
download | qt-creator-be25db429e7f23d5ec862d8c455ccd381d9255d4.tar.gz |
Debugger: Fix compatibility for debugger engine states
..when switching back to an older version of QC.
Amends e0219fad4d9b540145739832a5d91045a3f3fd0e.
Change-Id: I3662eb95cf1ae72f92688f12cc15b7a42fb1452c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/debugger/debuggerrunconfigurationaspect.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp index 7b64c0375f..4b67e82fd8 100644 --- a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp +++ b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp @@ -216,6 +216,10 @@ void DebuggerRunConfigurationAspect::toMap(QVariantMap &map) const m_qmlAspect->toMap(map); m_multiProcessAspect->toMap(map); m_overrideStartupAspect->toMap(map); + + // compatibility to old settings + map.insert("RunConfiguration.UseCppDebuggerAuto", m_cppAspect->value() == TriState::Default); + map.insert("RunConfiguration.UseQmlDebuggerAuto", m_qmlAspect->value() == TriState::Default); } void DebuggerRunConfigurationAspect::fromMap(const QVariantMap &map) |