[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:       2006-05-31 22:44:59
Message-ID: 1149115499.001315.6271.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 547139 by djarvie:

Fix Defer dialog time interval maximum to match maximum date/time value

 M  +3 -2      alarmtimewidget.cpp  


--- trunk/KDE/kdepim/kalarm/alarmtimewidget.cpp #547138:547139
@@ -1,7 +1,7 @@
 /*
  *  alarmtimewidget.cpp  -  alarm date/time entry widget
  *  Program:  kalarm
- *  Copyright (c) 2001-2006 by David Jarvie <software@astrojar.org.uk>
+ *  Copyright  © 2001-2006 by David Jarvie <software@astrojar.org.uk>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -397,7 +397,8 @@
 	{
 		if (now.date().daysTo(mMaxDateTime.date()) < 100)    // avoid possible 32-bit \
overflow on secsTo()  {
-			maxVal = now.secsTo(mMaxDateTime) / 60;
+			QDateTime dt(now.date(), QTime(now.time().hour(), now.time().minute(), 0));   // \
round down to nearest minute +			maxVal = dt.secsTo(mMaxDateTime) / 60;
 			if (maxVal > maxDelayTime)
 				maxVal = maxDelayTime;
 		}


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

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