Fixed logrotate window crash

pull/46/head
parent 8949e83407
commit b36d1aac67

@ -187,13 +187,13 @@ void on_save_global_local(){
}
void on_save_global(){
yon_save_proceed("global",YON_CONFIG_LOCAL);
yon_save_proceed("global",YON_CONFIG_GLOBAL);
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
}
void on_save_local(){
yon_save_proceed("system",YON_CONFIG_GLOBAL);
yon_save_proceed("system",YON_CONFIG_LOCAL);
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
}
@ -1088,12 +1088,12 @@ logrotate_configure_window *yon_logrotate_window_new(char *paths, logrotate_wind
char *value = strstr(parsed[i]," ")+1;
gtk_combo_box_set_active(GTK_COMBO_BOX(window->OldNumberCombo),1);
gtk_spin_button_set_value(GTK_SPIN_BUTTON(window->OldNumberEntry),atol(value));
}else if (!strcmp(parsed[i],"nomail")){
gtk_combo_box_set_active(GTK_COMBO_BOX(window->EmailCombo),2);
}else if (strstr(parsed[i],"mail")){
char *value = strstr(parsed[i]," ")+1;
gtk_entry_set_text(GTK_ENTRY(window->EmailEntry),value);
gtk_combo_box_set_active(GTK_COMBO_BOX(window->EmailCombo),1);
}else if (!strcmp(parsed[i],"nomail")){
gtk_combo_box_set_active(GTK_COMBO_BOX(window->EmailCombo),2);
}else if (!strcmp(parsed[i],"mailfirst")){
gtk_combo_box_set_active(GTK_COMBO_BOX(window->EmailContentsCombo),1);
}else if (!strcmp(parsed[i],"maillast")){

Loading…
Cancel
Save