|
|
|
@ -618,6 +618,11 @@ void on_logrotate_configuration_path_filechooser_save(GtkWidget *, dictionary *d
|
|
|
|
|
logrotate_configure_window *window = yon_dictionary_get_data(dict->first,logrotate_configure_window*);
|
|
|
|
|
logrotate_filechooser_window *dialog = yon_dictionary_get_data(dict->first->next,logrotate_filechooser_window*);
|
|
|
|
|
char *filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog->FileChooser));
|
|
|
|
|
if (yon_char_is_empty(filename)){
|
|
|
|
|
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(dialog->StatusBox),NOTHING_CHOSEN_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->FileOrDirCheck))){
|
|
|
|
|
GFile *file = gtk_file_chooser_get_file(GTK_FILE_CHOOSER(dialog->FileChooser));
|
|
|
|
|
GFileType type = G_FILE_TYPE_UNKNOWN;
|
|
|
|
@ -2242,6 +2247,7 @@ void on_log_path_filechooser_save(GtkWidget *, dictionary *dict){
|
|
|
|
|
if (!file){
|
|
|
|
|
filename = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog->FileChooser));
|
|
|
|
|
if (yon_char_is_empty(filename)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(dialog->StatusBox),NOTHING_CHOSEN_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (filename[strlen(filename)-1]=='/')
|
|
|
|
|