mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-14 11:19:03 +00:00
Fixed: #1193 Correct save recursive search paths.
This commit is contained in:
parent
b5697f0b94
commit
db57f10b90
2 changed files with 4 additions and 2 deletions
|
@ -66,6 +66,7 @@ bool CorePlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QStr
|
||||||
|
|
||||||
generalSettings->applyGeneralSettings();
|
generalSettings->applyGeneralSettings();
|
||||||
searchPathPage->applySearchPaths();
|
searchPathPage->applySearchPaths();
|
||||||
|
recureseSearchPathPage->applySearchPaths();
|
||||||
addAutoReleasedObject(generalSettings);
|
addAutoReleasedObject(generalSettings);
|
||||||
addAutoReleasedObject(searchPathPage);
|
addAutoReleasedObject(searchPathPage);
|
||||||
addAutoReleasedObject(recureseSearchPathPage);
|
addAutoReleasedObject(recureseSearchPathPage);
|
||||||
|
|
|
@ -193,10 +193,11 @@ void CSearchPathsSettingsPage::writeSettings()
|
||||||
QSettings *settings = Core::ICore::instance()->settings();
|
QSettings *settings = Core::ICore::instance()->settings();
|
||||||
settings->beginGroup(Core::Constants::DATA_PATH_SECTION);
|
settings->beginGroup(Core::Constants::DATA_PATH_SECTION);
|
||||||
if (m_recurse)
|
if (m_recurse)
|
||||||
paths = settings->value(Core::Constants::RECURSIVE_SEARCH_PATHS).toStringList();
|
settings->setValue(Core::Constants::RECURSIVE_SEARCH_PATHS, paths);
|
||||||
else
|
else
|
||||||
paths = settings->value(Core::Constants::SEARCH_PATHS).toStringList();
|
settings->setValue(Core::Constants::SEARCH_PATHS, paths);
|
||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
|
settings->sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSearchPathsSettingsPage::checkEnabledButton()
|
void CSearchPathsSettingsPage::checkEnabledButton()
|
||||||
|
|
Loading…
Reference in a new issue