[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kalarm
From:       David Jarvie <software () astrojar ! org ! uk>
Date:       2008-02-13 13:15:58
Message-ID: 1202908558.467500.25652.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 774533 by djarvie:

Prevent repetition duration error message when saving alarm which never recurs

 M  +2 -1      editdlg.cpp  


--- trunk/KDE/kdepim/kalarm/editdlg.cpp #774532:774533
@@ -875,7 +875,8 @@
 				mRecurrenceEdit->updateEvent(recurEvent, false);
 				longestRecurInterval = recurEvent.longestRecurrenceInterval().asSeconds();
 			}
-			if (recurEvent.repeatInterval().asSeconds() * recurEvent.repeatCount() >= \
longestRecurInterval - reminder*60) +			if (longestRecurInterval > 0
+			&&  recurEvent.repeatInterval().asSeconds()/60 * recurEvent.repeatCount() >= \
longestRecurInterval/60 - reminder)  {
 				KMessageBox::sorry(this, i18nc("@info", "The duration of a repetition within the \
                recurrence must be less than the recurrence interval minus any \
                reminder period"));
 				mRecurrenceEdit->activateSubRepetition();   // display the alarm repetition \
dialog again


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic