diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c index 8c89468..821dff2 100644 --- a/source/ubl-settings-logging.c +++ b/source/ubl-settings-logging.c @@ -1783,7 +1783,6 @@ void on_log_save(GtkWidget *self, dictionary *dict){ config_str pathse_parsed = yon_char_parse(pathse,&pathse_size,"\n"); if (yon_char_parsed_includes_char_parsed(pathse_parsed,paths_parsed,pathse_size,paths_size)){ yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),REPEATED_PATHS_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE); - yon_ubl_status_highlight_incorrect(window->LogPathsBox); return; } } @@ -1797,6 +1796,10 @@ void on_log_save(GtkWidget *self, dictionary *dict){ gtk_list_store_set(widgets->list,&iter,3,stat==0?0:stat==1?2:2,-1); } gtk_list_store_set(widgets->list,&iter,0,name,1,pathse,2,&desc ? desc : "",-1); + } else { + 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; } yon_logs_custom_save(widgets); on_close_subwindow(self,NULL);