Kaydet (Commit) 85febd5f authored tarafından Enrico Tröger's avatar Enrico Tröger

Restore the previous state of main_status.quitting status when asking for reload…

Restore the previous state of main_status.quitting status when asking for reload a changed file instead of setting it to true. Oops.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2640 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 8a0bcccc
2008-06-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/dialogs.c:
Restore the previous state of main_status.quitting status when asking
for reload a changed file instead of setting it to true.
2008-06-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/build.c, src/dialogs.c, src/document.c, src/document.h,
......
......@@ -667,12 +667,13 @@ gboolean dialogs_show_unsaved_file(gint idx)
#endif
gchar *msg, *msg2, *short_fn = NULL;
gint ret;
gboolean old_quitting_state = main_status.quitting;
/* display the file tab to remind the user of the document */
main_status.quitting = FALSE;
gtk_notebook_set_current_page(GTK_NOTEBOOK(main_widgets.notebook),
document_get_notebook_page(idx));
main_status.quitting = TRUE;
main_status.quitting = old_quitting_state;
if (documents[idx]->file_name != NULL)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment