From: short <> Date: Sun, 23 May 2004 12:40:28 +0000 (+0000) Subject: Fixed GnomeUI segfault on the config file update. X-Git-Tag: udpgate-1_0~34 X-Git-Url: https://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=dedb5d761b5a8a976853df8717a5fb1b263d3e9e Fixed GnomeUI segfault on the config file update. --- diff --git a/src/ui-gnome.c b/src/ui-gnome.c index 1883b6a..79546bb 100644 --- a/src/ui-gnome.c +++ b/src/ui-gnome.c @@ -123,6 +123,9 @@ void on_ButtonHide_clicked(GtkButton *button,gpointer user_data) { g_return_if_fail(GTK_IS_BUTTON(button)); + /* update config file */ + optarg_port_set_string(gtk_entry_get_text(PortEntry)); + /* Do not: gtk_main_quit(); * as 'App' widget will quit our gtk_main() automatically. */ @@ -163,7 +166,6 @@ GtkWidget *dialog; static void ui_gnome_interactive(void) { gtk_main(); - optarg_port_set_string(gtk_entry_get_text(PortEntry)); /* update config file */ network_notify_hostip=NULL; g_log_remove_handler( G_LOG_DOMAIN, /* log_domain; "Captive" */