ui/common/context.c

changeset 507
7f380a3ac9a1
parent 492
f74d46ffaca1
equal deleted inserted replaced
506:02ddf1044cbc 507:7f380a3ac9a1
290 if(copytodoc) { 290 if(copytodoc) {
291 to->from = from; 291 to->from = from;
292 to->from_ctx = from->from_ctx; 292 to->from_ctx = from->from_ctx;
293 } 293 }
294 294
295 ui_setop_enable(TRUE);
296
295 // copy binding 297 // copy binding
296 // we don't copy the observer, because the from var has never one 298 // we don't copy the observer, because the from var has never one
297 switch(from->type) { 299 switch(from->type) {
298 default: fprintf(stderr, "uic_copy_binding: wtf!\n"); break; 300 default: fprintf(stderr, "uic_copy_binding: wtf!\n"); break;
299 case UI_VAR_SPECIAL: break; 301 case UI_VAR_SPECIAL: break;
371 uic_generic_copy(f, t); 373 uic_generic_copy(f, t);
372 t->set(t, t->value, t->type); 374 t->set(t, t->value, t->type);
373 break; 375 break;
374 } 376 }
375 } 377 }
378
379 ui_setop_enable(FALSE);
376 } 380 }
377 381
378 void uic_save_var2(UiVar *var) { 382 void uic_save_var2(UiVar *var) {
379 switch(var->type) { 383 switch(var->type) {
380 case UI_VAR_SPECIAL: break; 384 case UI_VAR_SPECIAL: break;

mercurial