Call uat->post_update_cb also when not having the uat file.
This is because some uat's do cleanup in the init routine, which is needed when changing profile. svn path=/trunk/; revision=41842
This commit is contained in:
parent
adabb3d63e
commit
b651bbac35
|
@ -280,6 +280,10 @@ gboolean uat_load(uat_t* uat_in, char** err) {
|
|||
|
||||
if (!fname) {
|
||||
UAT_UPDATE(uat);
|
||||
|
||||
if (uat->post_update_cb)
|
||||
uat->post_update_cb();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -312,7 +316,7 @@ gboolean uat_load(uat_t* uat_in, char** err) {
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (uat->post_update_cb)
|
||||
if (uat->post_update_cb)
|
||||
uat->post_update_cb();
|
||||
|
||||
*err = NULL;
|
||||
|
@ -347,7 +351,7 @@ gboolean uat_load_str(uat_t* uat_in, char* entry, char** err) {
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (uat->post_update_cb)
|
||||
if (uat->post_update_cb)
|
||||
uat->post_update_cb();
|
||||
|
||||
*err = NULL;
|
||||
|
|
Loading…
Reference in New Issue