From 6483eee0caca26f1e25039ee5f341e1444b3c335 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 4 May 2004 18:55:06 +0000 Subject: fix logic error. 2004-05-04 Larry Ewing * gui/dialogs/calendar-setup.c: fix logic error. svn path=/trunk/; revision=25792 --- calendar/gui/dialogs/calendar-setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui/dialogs/calendar-setup.c') 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; -- cgit