GNOME Bugzilla – Bug 573635
Exit without save - asked twice for integrated UI case
Last modified: 2009-03-29 19:34:28 UTC
- start with integrted ui - draw sowemthing - choose exit - hit "Exit without save" The dialog appears once while the UI is visible and a second time when it is gone.
a quich hack to overcome this error below. But it probably would be better to do all this "exit code" handling in exit_dialog rather than complicating app_procs.c even more. (If it the exit dialog would have a better visual appearance, it could be used for all ui cases.) Index: app/app_procs.c =================================================================== --- app/app_procs.c (revision 4346) +++ app/app_procs.c (working copy) @@ -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
apparently there is not coming a better version in time, so I commited the above: 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