# HG changeset patch # User ib # Date 1364565298 0 # Node ID 7d749e44a9e5aedceec0a013dedca0d004d12238 # Parent 6c891a0e3feae6f54d9daab1f04c5205b80d643c Remove HideURLDialog(). Simply destroy the window. (It's pointless to check whether the window is existing, because it cannot be called without an existing window.) diff -r 6c891a0e3fea -r 7d749e44a9e5 gui/dialog/url.c --- a/gui/dialog/url.c Fri Mar 29 13:43:21 2013 +0000 +++ b/gui/dialog/url.c Fri Mar 29 13:54:58 2013 +0000 @@ -42,14 +42,6 @@ static GtkWidget * URLEntry; static GList * URLComboEntrys = NULL; -static void HideURLDialog( void ) -{ - if ( !URLDialog ) return; - gtk_widget_hide( URLDialog ); - gtk_widget_destroy( URLDialog ); - URLDialog=0; -} - static void on_Button_pressed( GtkButton * button,gpointer user_data ) { urlItem * item; @@ -79,7 +71,8 @@ uiEvent( evPlay,0 ); } } - HideURLDialog(); + gtk_widget_destroy( URLDialog ); + URLDialog = NULL; } static GtkWidget * CreateURLDialog( void )