aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2004-05-05 02:55:06 +0800
committerLarry Ewing <lewing@src.gnome.org>2004-05-05 02:55:06 +0800
commit6483eee0caca26f1e25039ee5f341e1444b3c335 (patch)
tree7f562eddd4fc8027074fbcd985adb32175cd1c39 /calendar/gui/dialogs
parentc5168397e97f5ea4fd10ed44654c951c12b0323a (diff)
downloadgsoc2013-evolution-6483eee0caca26f1e25039ee5f341e1444b3c335.tar.gz
gsoc2013-evolution-6483eee0caca26f1e25039ee5f341e1444b3c335.tar.zst
gsoc2013-evolution-6483eee0caca26f1e25039ee5f341e1444b3c335.zip
fix logic error.
2004-05-04 Larry Ewing <lewing@ximian.com> * gui/dialogs/calendar-setup.c: fix logic error. svn path=/trunk/; revision=25792
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;