diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 118334d..6a31f18 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -1489,11 +1489,11 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){ yon_config_register(hostname_parameter,hostname_parameter_command,"auto"); } else { if (!yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry)))){ - yon_config_remove_by_key(hostname_parameter); + char *hostname = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry)); + yon_config_register(hostname_parameter,hostname_parameter_command,hostname); } else { - char *hostname = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry)); - yon_config_register(hostname_parameter,hostname_parameter_command,hostname); + yon_config_remove_by_key(hostname_parameter); } }