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:
Stig Bjørlykke 2012-03-30 11:12:03 +00:00
parent adabb3d63e
commit b651bbac35
1 changed files with 6 additions and 2 deletions

View File

@ -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;