forked from qt-creator/qt-creator
Lua: Make it obvious that you cannot use autoApply with OptionsPage
Change-Id: I9fd610f7f23306a19c27325910f38e29bd71082a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -572,6 +572,9 @@ void setupSettingsModule()
|
||||
options.get_or<QString>("categoryIconPath", {})));
|
||||
setCategoryIconPath(catIcon);
|
||||
AspectContainer *container = options.get<AspectContainer *>("aspectContainer");
|
||||
if (container->isAutoApply())
|
||||
throw sol::error("AspectContainer must have autoApply set to false");
|
||||
|
||||
setSettingsProvider([container]() { return container; });
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user