From d38e40fe9ee475230425fa83e924c49e5946b87c Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 23 Apr 2007 20:38:22 +0000 Subject: Fix for bug 1848 where the outcome of setting the time to 12:00AM did not work. This commit is based on a patch submitted by harlekin. Thank you! --- (limited to 'noncore') diff --git a/noncore/settings/netsystemtime/timetabwidget.cpp b/noncore/settings/netsystemtime/timetabwidget.cpp index 895514b..e6fcf7f 100644 --- a/noncore/settings/netsystemtime/timetabwidget.cpp +++ b/noncore/settings/netsystemtime/timetabwidget.cpp @@ -177,7 +177,7 @@ void TimeTabWidget::setDateTime( const QDateTime &dt ) if( use12HourTime ) { int show_hour = t.hour(); - if ( t.hour() >= 12 ) + if ( t.hour() > 12 ) { show_hour -= 12; cbAmpm->setCurrentItem( ValuePM ); @@ -239,7 +239,7 @@ void TimeTabWidget::slotUse12HourTime( int i ) sbHour->setMinValue( 1 ); sbHour->setMaxValue( 12 ); - if ( show_hour >= 12 ) + if ( show_hour > 12 ) { show_hour -= 12; cbAmpm->setCurrentItem( ValuePM ); -- cgit v0.9.0.2