diff --git a/modules/dialog/dlg_var.c b/modules/dialog/dlg_var.c index e89ee27c427..dd8dd6ddd1e 100644 --- a/modules/dialog/dlg_var.c +++ b/modules/dialog/dlg_var.c @@ -186,7 +186,7 @@ int set_dlg_variable_unsafe(struct dlg_cell *dlg, str *key, str *val) /* replace the current it with var and free the it */ var->next = it->next; /* Take the previous vflags: */ - var->vflags = it->vflags & DLG_FLAG_CHANGED; + var->vflags = it->vflags | DLG_FLAG_CHANGED; if (it_prev) it_prev->next = var; else *var_list = var; }