-rw-r--r-- | core/launcher/main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 8974ced..715239f 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp | |||
@@ -26,16 +26,17 @@ | |||
26 | #include <qpe/network.h> | 26 | #include <qpe/network.h> |
27 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
28 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) | 28 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) |
29 | #include <qpe/custom.h> | 29 | #include <qpe/custom.h> |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #include <opie/odevice.h> | 32 | #include <opie/odevice.h> |
33 | 33 | ||
34 | #include <qmessagebox.h> | ||
34 | #include <qfile.h> | 35 | #include <qfile.h> |
35 | #include <qimage.h> | 36 | #include <qimage.h> |
36 | #include <qwindowsystem_qws.h> | 37 | #include <qwindowsystem_qws.h> |
37 | #include <qpe/qcopenvelope_qws.h> | 38 | #include <qpe/qcopenvelope_qws.h> |
38 | #include <qpe/alarmserver.h> | 39 | #include <qpe/alarmserver.h> |
39 | 40 | ||
40 | #include <stdlib.h> | 41 | #include <stdlib.h> |
41 | #include <stdio.h> | 42 | #include <stdio.h> |
@@ -112,16 +113,28 @@ int initApplication( int argc, char ** argv ) | |||
112 | Calibrate *cal = new Calibrate; | 113 | Calibrate *cal = new Calibrate; |
113 | cal->exec(); | 114 | cal->exec(); |
114 | delete cal; | 115 | delete cal; |
115 | } | 116 | } |
116 | #endif | 117 | #endif |
117 | 118 | ||
118 | d->show(); | 119 | d->show(); |
119 | 120 | ||
121 | if ( QDate::currentDate ( ). year ( ) < 2000 ) { | ||
122 | if ( QMessageBox::information ( 0, DesktopApplication::tr( "Information" ), DesktopApplication::tr( "<p>The system date doesn't seem to be valid.\n(%1)</p><p>Do you want to correct the clock ?</p>" ). arg( TimeString::dateString ( QDate::currentDate ( ))), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { | ||
123 | QCString app; | ||
124 | if ( QFile::exists ( QPEApplication::qpeDir ( ) + "/bin/netsystemtime" )) | ||
125 | app = "netsystemtime"; | ||
126 | else | ||
127 | app = "systemtime"; | ||
128 | QCopEnvelope e ( "QPE/Application/" + app, "setDocument(QString)" ); | ||
129 | e << QString ( ); | ||
130 | } | ||
131 | } | ||
132 | |||
120 | int rv = a.exec(); | 133 | int rv = a.exec(); |
121 | 134 | ||
122 | delete d; | 135 | delete d; |
123 | 136 | ||
124 | ODevice::inst ( )-> setSoftSuspend ( false ); | 137 | ODevice::inst ( )-> setSoftSuspend ( false ); |
125 | 138 | ||
126 | return rv; | 139 | return rv; |
127 | } | 140 | } |