aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog2
-rw-r--r--calendar/gui/dialogs/calendar-setup.c6
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 <lewing@ximian.com>
+ * 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;