aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/calendar-setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index 2ffffcd667..7b5016788b 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -432,15 +432,15 @@ set_refresh_time (SourceDialog *source_dialog) {
time = refresh_str ? atoi (refresh_str) : 30;
if (source_dialog->refresh_optionmenu) {
- if (time && time % 10080) {
+ if (time && !(time % 10080)) {
/* weeks */
item_num = 3;
time /= 10080;
- } else if (time && time % 1440) {
+ } else if (time && !(time % 1440)) {
/* days */
item_num = 2;
time /= 1440;
- } else if (time && time % 60) {
+ } else if (time && !(time % 60)) {
/* days */
item_num = 1;
time /= 60;