CodeGenSettings: Set autoApply to false

Otherwise, the following assert is issued:
"!aspect->isAutoApply()" in [...]coreplugin/dialogs/ioptionspage.cpp:170

The assert appeared after pressing Apply button when
the Preferences... | C++ | Qt Class Generation tab was visible.

Change-Id: I6c5daf2a5f9f00c5edd7dca925447452bd9869bd
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-01-18 12:15:38 +01:00
parent cdfdb5cb9b
commit d51e116ac4

View File

@@ -25,6 +25,7 @@ CodeGenSettings &codeGenSettings()
CodeGenSettings::CodeGenSettings() CodeGenSettings::CodeGenSettings()
{ {
setAutoApply(false);
setSettingsGroup("FormClassWizardPage"); setSettingsGroup("FormClassWizardPage");
embedding.setSettingsKey("Embedding"); embedding.setSettingsKey("Embedding");