diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c index 5b01d01..a4d8b0e 100644 --- a/source/ubl-settings-logging.c +++ b/source/ubl-settings-logging.c @@ -422,17 +422,17 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){ switch (active){ case 0: period = "hourly"; break; - case 2: period = "daily"; + case 1: period = "daily"; break; - case 3: period = "weekly"; + case 2: period = "weekly"; int weekday = gtk_combo_box_get_active(GTK_COMBO_BOX(window->RotationPeriodAdditionalCombo)); weekday++; if (weekday==7) weekday=0; period = yon_char_unite(period,", ",yon_char_from_int(weekday),NULL); break; - case 4: period = "monthly"; + case 3: period = "monthly"; break; - case 5: period = "yearly"; + case 4: period = "yearly"; break; } }