forked from enlightenment/efl
Ecore_Config no longer saves configurations passed on the command line - due to popular demand
SVN revision: 12287
This commit is contained in:
parent
b2ce0225c4
commit
3a1f56385d
|
@ -60,7 +60,8 @@ typedef enum Ecore_Config_Flag
|
|||
PF_NONE = 0,
|
||||
PF_BOUNDS = 1,
|
||||
PF_MODIFIED = 2,
|
||||
PF_SYSTEM = 4
|
||||
PF_SYSTEM = 4,
|
||||
PF_CMDLN = 8
|
||||
} Ecore_Config_Flag;
|
||||
|
||||
/**
|
||||
|
|
|
@ -541,6 +541,7 @@ ecore_config_typed_val(Ecore_Config_Prop * e, void *val, int type)
|
|||
|
||||
ecore_config_bound(e);
|
||||
e->flags |= PF_MODIFIED;
|
||||
e->flags = e->flags & ~PF_CMDLN;
|
||||
return ECORE_CONFIG_ERR_SUCC;
|
||||
}
|
||||
return ECORE_CONFIG_ERR_IGNORED;
|
||||
|
|
|
@ -574,7 +574,10 @@ ecore_config_parse_set(Ecore_Config_Prop * prop, char *arg, char *opt,
|
|||
return ECORE_CONFIG_PARSE_EXIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
ecore_config_set(prop->key, arg);
|
||||
prop->flags |= PF_CMDLN;
|
||||
}
|
||||
return ECORE_CONFIG_PARSE_CONTINUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -213,12 +213,15 @@ ecore_config_file_save(char *file)
|
|||
while (next)
|
||||
{
|
||||
/* let the config_db deal with this
|
||||
if (!(next->flags & PF_MODIFIED))
|
||||
* handyande: hmm, not sure that it ever does - reinstating until
|
||||
* further discussions satisfy me!
|
||||
*/
|
||||
if (!(next->flags & PF_MODIFIED) || next->flags & PF_CMDLN)
|
||||
{
|
||||
next = next->next;
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
|
||||
tmp = NULL;
|
||||
|
||||
switch (next->type)
|
||||
|
|
Loading…
Reference in New Issue