dia r4355 - in trunk: . app



Author: hans
Date: Sun Mar 29 19:32:55 2009
New Revision: 4355
URL: http://svn.gnome.org/viewvc/dia?rev=4355&view=rev

Log:
2009-03-29  Hans Breuer  <hans breuer org>
	
	* app/app_procs.c : slightly hacked version to avoid double request
	of "Exit without save" for integrated UI case, bug #573635



Modified:
   trunk/ChangeLog
   trunk/app/app_procs.c

Modified: trunk/app/app_procs.c
==============================================================================
--- trunk/app/app_procs.c	(original)
+++ trunk/app/app_procs.c	Sun Mar 29 19:32:55 2009
@@ -973,6 +973,18 @@
           g_free (filename);
         }
         exit_dialog_free_items (items);
+      } 
+      else if (result == EXIT_DIALOG_EXIT_NO_SAVE) 
+      {
+        list = dia_open_diagrams();
+        while (list) {
+          diagram = list->data;
+
+	  /* slight hack: don't ask again */
+          diagram_set_modified (diagram, FALSE);
+	  undo_clear(diagram->undo);
+          list = g_list_next (list);
+	}
       }
     }
     else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]