forked from qt-creator/qt-creator
McuSupport: Only (re-)generate kits when on Mcu options page
... less surprises, like for example user is on the Kits page, edits an existing kit, and that gets overwritten when pressing "Apply" Change-Id: I2d936b757cb5c891a087854805fa2f056834185f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -168,6 +168,9 @@ void McuSupportOptionsPage::apply()
|
||||
QTC_ASSERT(m_options->armGccPackage, return);
|
||||
QTC_ASSERT(m_options->qtForMCUsSdkPackage, return);
|
||||
|
||||
if (!widget()->isVisible())
|
||||
return; // Only create/overwrite kits when this option page is shown
|
||||
|
||||
const McuTarget *mcuTarget = m_widget->currentMcuTarget();
|
||||
if (!mcuTarget)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user