From 340cb7e64fb898966996b00b93c03ca05a347aa5 Mon Sep 17 00:00:00 2001 From: drw Date: Sat, 29 Mar 2003 22:32:58 +0000 Subject: Fix for bug #701 - update time and date controls on Main tab after retrieving time from ntpdate. --- (limited to 'noncore/settings/netsystemtime/ntp.cpp') diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index aecefc1..f653cd0 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -223,6 +224,10 @@ void Ntp::ntpFinished(OProcess *p) int secsSinceLast = time - lastLookup; TextLabelNewTime->setText(QDateTime::currentDateTime().toString()); TextLabelTimeShift->setText(QString::number(timeShift)+tr(" seconds")); + + dateButton->setDate( QDate::currentDate() ); + timeButton->setTime( QDateTime::currentDateTime() ); + if ( lastNtp && lastLookup > 0 && secsSinceLast > 60* SpinBoxMinLookupDelay->value()) { cfg.setGroup("lookup_"+QString::number(lookupCount)); -- cgit v0.9.0.2