pull/2/head
Ivan Yartsev 2 years ago
parent c68cbb1c26
commit 6e6d294503

@ -422,17 +422,17 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
switch (active){ switch (active){
case 0: period = "hourly"; case 0: period = "hourly";
break; break;
case 2: period = "daily"; case 1: period = "daily";
break; break;
case 3: period = "weekly"; case 2: period = "weekly";
int weekday = gtk_combo_box_get_active(GTK_COMBO_BOX(window->RotationPeriodAdditionalCombo)); int weekday = gtk_combo_box_get_active(GTK_COMBO_BOX(window->RotationPeriodAdditionalCombo));
weekday++; weekday++;
if (weekday==7) weekday=0; if (weekday==7) weekday=0;
period = yon_char_unite(period,", ",yon_char_from_int(weekday),NULL); period = yon_char_unite(period,", ",yon_char_from_int(weekday),NULL);
break; break;
case 4: period = "monthly"; case 3: period = "monthly";
break; break;
case 5: period = "yearly"; case 4: period = "yearly";
break; break;
} }
} }

Loading…
Cancel
Save