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/ChangeLog | 2 ++ calendar/gui/dialogs/calendar-setup.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 9e41e3c4b1..ce249b3f69 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,7 @@ 2004-05-04 Larry Ewing + * gui/dialogs/calendar-setup.c: fix logic error. + * gui/dialogs/calendar-setup.c (source_to_dialog): convert units. (dialog_to_source): convert time units. 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 v1.2.3