From c27b3a5caa670e9b2d5c39fad229d9979d78705a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 21 May 2009 19:19:12 +0000 Subject: [PATCH] Fix broken 'Cancel' button in the Save As dialog. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3810 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ src/dialogs.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 035642ee..3653be41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-21 Enrico Tröger + + * src/dialogs.c: + Fix broken 'Cancel' button in the Save As dialog. + + 2009-05-20 Nick Treleaven * src/editor.c: diff --git a/src/dialogs.c b/src/dialogs.c index 41246b17..54d3f656 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -397,7 +397,11 @@ on_file_save_dialog_response (GtkDialog *dialog, g_free(utf8_filename); g_free(new_filename); + break; } + case GTK_RESPONSE_CANCEL: + success = TRUE; + break; } if (success) gtk_widget_hide(ui_widgets.save_filesel);