diff --git a/source/ubl-settings-update.c b/source/ubl-settings-update.c index cd21731..eee3248 100644 --- a/source/ubl-settings-update.c +++ b/source/ubl-settings-update.c @@ -1186,6 +1186,11 @@ void on_web_publish_accept(GtkWidget *, dictionary *dict){ void on_mirror_accept(GtkWidget *,dictionary *dict){ main_window *widgets = yon_dictionary_get_data(dict->first,main_window*); mirror_add_window *window = yon_dictionary_get_data(dict->first->next,mirror_add_window*); + if (yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(window->NameEntry)))){ + yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE); + yon_ubl_status_highlight_incorrect(window->NameEntry); + return; + } if (!window->sections&&yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(window->TypeEntry)))) { yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE); yon_ubl_status_highlight_incorrect(window->TypeEntry);