From fd5014aef5d55423623cbd68c8fed525bd075f30 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sat, 7 Apr 2012 00:41:21 +0000 Subject: [PATCH] (trunk gtk) fix ticket #4827 'clicking cancel in Open URL dialog does nothing' --- gtk/open-dialog.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/open-dialog.c b/gtk/open-dialog.c index d10497003..ea94bb6e9 100644 --- a/gtk/open-dialog.c +++ b/gtk/open-dialog.c @@ -471,6 +471,11 @@ onOpenURLResponse( GtkDialog * dialog, int response, gpointer user_data ) g_free( url ); } } + else if( response == GTK_RESPONSE_CANCEL ) + { + handled = TRUE; + } + if( handled ) gtk_widget_destroy( GTK_WIDGET( dialog ) );