2.5
[blender-staging.git] / source / blender / editors / util / undo.c
index 5d7ed72127e8b3990185fa56e3cf16ec18c9411f..15dba3fc951c6871a63afd512dc90533249179af 100644 (file)
@@ -78,6 +78,7 @@ static void sound_initialize_sounds() {}
 
 void ED_undo_push(bContext *C, char *str)
 {
+       wmWindowManager *wm= CTX_wm_manager(C);
        Object *obedit= CTX_data_edit_object(C);
        
        if(obedit) {
@@ -105,6 +106,11 @@ void ED_undo_push(bContext *C, char *str)
                if(U.uiflag & USER_GLOBALUNDO) 
                        BKE_write_undo(C, str);
        }
+       
+       if(wm->file_saved) {
+               wm->file_saved= 0;
+               WM_event_add_notifier(C, NC_WM|ND_DATACHANGED, NULL);
+       }
 }
 
 void ED_undo_push_op(bContext *C, wmOperator *op)