소스 검색

dialog: set DLG_FLAG_CHANGED for changed dialog variables

improper flag setting has been the cause of the not DB saving in some scenarios
Dmitri Savolainen 9 년 전
부모
커밋
43c77faa00
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/dialog/dlg_var.c

+ 1 - 1
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;				  
 			}