- Preferences completed.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1032 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
3dbb0dbd80
commit
6458511399
4 changed files with 54 additions and 13 deletions
|
@ -194,6 +194,12 @@ GlobalPreferences::key_file_read(KeyFile& kf)
|
|||
|
||||
_mod_dirs.clear();
|
||||
_pol_dirs.clear();
|
||||
std::vector<Glib::ustring> old_mod_dirs(1, PLUGDIR);
|
||||
std::vector<Glib::ustring> old_pol_dirs(1, POLDIR);
|
||||
_mod_dirs = old_mod_dirs;
|
||||
_pol_dirs = old_pol_dirs;
|
||||
|
||||
|
||||
// read speed
|
||||
{
|
||||
int new_speed = 1000; // use a default value
|
||||
|
@ -218,14 +224,14 @@ GlobalPreferences::key_file_read(KeyFile& kf)
|
|||
ostr << "modules-dir-" << i;
|
||||
Glib::ustring key(ostr.str());
|
||||
val = kf.search_value(key);
|
||||
if (val)
|
||||
if (val && *val != _mod_dirs[0])
|
||||
{
|
||||
// add_modules_dir(*val);
|
||||
_mod_dirs.push_back(*val);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// read policies directories
|
||||
{
|
||||
|
@ -241,7 +247,7 @@ GlobalPreferences::key_file_read(KeyFile& kf)
|
|||
ostr << "policies-dir-" << i;
|
||||
Glib::ustring key(ostr.str().c_str());
|
||||
val = kf.search_value(key);
|
||||
if (val)
|
||||
if (val && *val != _pol_dirs[0])
|
||||
{
|
||||
// add_policies_dir(*val);
|
||||
_pol_dirs.push_back(*val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue