mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
find.c: drop support of legacy config option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
67a4c6d521
commit
d38385eb37
@ -267,7 +267,6 @@ static void
|
||||
find_load_options (void)
|
||||
{
|
||||
static gboolean loaded = FALSE;
|
||||
char *ignore_dirs;
|
||||
|
||||
if (loaded)
|
||||
return;
|
||||
@ -296,20 +295,7 @@ find_load_options (void)
|
||||
mc_config_get_bool (mc_main_config, "FindFile", "content_all_charsets", FALSE);
|
||||
options.ignore_dirs_enable =
|
||||
mc_config_get_bool (mc_main_config, "FindFile", "ignore_dirs_enable", TRUE);
|
||||
|
||||
/* Back compatibility: try load old parameter at first */
|
||||
ignore_dirs = mc_config_get_string (mc_main_config, CONFIG_MISC_SECTION, "find_ignore_dirs", "");
|
||||
mc_config_del_key (mc_main_config, CONFIG_MISC_SECTION, "find_ignore_dirs");
|
||||
|
||||
/* Then load new parameters */
|
||||
options.ignore_dirs = mc_config_get_string (mc_main_config, "FindFile", "ignore_dirs", "");
|
||||
if (options.ignore_dirs[0] != '\0')
|
||||
g_free (ignore_dirs);
|
||||
else
|
||||
{
|
||||
g_free (options.ignore_dirs);
|
||||
options.ignore_dirs = ignore_dirs;
|
||||
}
|
||||
|
||||
if (options.ignore_dirs[0] == '\0')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user