(trunk gtk) fix ticket #4827 'clicking cancel in Open URL dialog does nothing'

This commit is contained in:
Jordan Lee 2012-04-07 00:41:21 +00:00
parent 217da21bb8
commit fd5014aef5
1 changed files with 5 additions and 0 deletions

View File

@ -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 ) );