git://git.jankratochvil.net
/
udpgate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed GnomeUI segfault on the config file update.
[udpgate.git]
/
src
/
ui-gnome.c
diff --git
a/src/ui-gnome.c
b/src/ui-gnome.c
index
1883b6a
..
79546bb
100644
(file)
--- 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));
{
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.
*/
/* 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();
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" */
network_notify_hostip=NULL;
g_log_remove_handler(
G_LOG_DOMAIN, /* log_domain; "Captive" */