Kaydet (Commit) 8a0bcccc authored tarafından Enrico Tröger's avatar Enrico Tröger

When quitting, prevent inconsistent GUI elements when cancelling on an unsaved file.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2639 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 4d3ba6e7
......@@ -23,6 +23,9 @@
* src/main.c:
Fix slightly wrong preprocessor checks.
* src/dialogs.c:
When quitting, prevent inconsistent GUI elements when cancelling on
an unsaved file.
2008-06-02 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
......@@ -54,6 +54,7 @@
#include "keybindings.h"
#include "encodings.h"
#include "build.h"
#include "main.h"
enum
......@@ -668,8 +669,10 @@ gboolean dialogs_show_unsaved_file(gint idx)
gint ret;
/* 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;
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