forked from qt-creator/qt-creator
QtSupport: Fix order of setEnabler / readSettings
Silences a soft assert. Change-Id: Ibd32f2efe75f610bf7e8f6a33a7a84a8da9f7019 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -41,7 +41,6 @@ CodeGenSettings::CodeGenSettings()
|
||||
|
||||
addQtVersionCheck.setSettingsKey("AddQtVersionCheck");
|
||||
addQtVersionCheck.setLabelText(Tr::tr("Add Qt version #ifdef for module names"));
|
||||
addQtVersionCheck.setEnabler(&includeQtModule);
|
||||
|
||||
setLayouter([this] {
|
||||
using namespace Layouting;
|
||||
@@ -66,6 +65,7 @@ CodeGenSettings::CodeGenSettings()
|
||||
|
||||
|
||||
readSettings();
|
||||
addQtVersionCheck.setEnabler(&includeQtModule);
|
||||
}
|
||||
|
||||
class CodeGenSettingsPage final : public Core::IOptionsPage
|
||||
|
Reference in New Issue
Block a user