Fixed: #1193 Correct save recursive search paths.

This commit is contained in:
dnk-88 2011-05-26 13:45:24 +03:00
parent 3c49ee36e9
commit b15546dd95
2 changed files with 4 additions and 2 deletions

View file

@ -66,6 +66,7 @@ bool CorePlugin::initialize(ExtensionSystem::IPluginManager *pluginManager, QStr
generalSettings->applyGeneralSettings();
searchPathPage->applySearchPaths();
recureseSearchPathPage->applySearchPaths();
addAutoReleasedObject(generalSettings);
addAutoReleasedObject(searchPathPage);
addAutoReleasedObject(recureseSearchPathPage);

View file

@ -193,10 +193,11 @@ void CSearchPathsSettingsPage::writeSettings()
QSettings *settings = Core::ICore::instance()->settings();
settings->beginGroup(Core::Constants::DATA_PATH_SECTION);
if (m_recurse)
paths = settings->value(Core::Constants::RECURSIVE_SEARCH_PATHS).toStringList();
settings->setValue(Core::Constants::RECURSIVE_SEARCH_PATHS, paths);
else
paths = settings->value(Core::Constants::SEARCH_PATHS).toStringList();
settings->setValue(Core::Constants::SEARCH_PATHS, paths);
settings->endGroup();
settings->sync();
}
void CSearchPathsSettingsPage::checkEnabledButton()