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 + * Copyright © 2001-2006 by David Jarvie * * 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; }