-rw-r--r-- | core/launcher/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 715239f..b517c7d 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp | |||
@@ -107,38 +107,33 @@ int initApplication( int argc, char ** argv ) | |||
107 | (void)new SysFileMonitor(d); | 107 | (void)new SysFileMonitor(d); |
108 | Network::createServer(d); | 108 | Network::createServer(d); |
109 | 109 | ||
110 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) | 110 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) |
111 | if ( !QFile::exists( "/etc/pointercal" ) ) { | 111 | if ( !QFile::exists( "/etc/pointercal" ) ) { |
112 | // Make sure calibration widget starts on top. | 112 | // Make sure calibration widget starts on top. |
113 | Calibrate *cal = new Calibrate; | 113 | Calibrate *cal = new Calibrate; |
114 | cal->exec(); | 114 | cal->exec(); |
115 | delete cal; | 115 | delete cal; |
116 | } | 116 | } |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | d->show(); | 119 | d->show(); |
120 | 120 | ||
121 | if ( QDate::currentDate ( ). year ( ) < 2000 ) { | 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 ) { | 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; | 123 | QCopEnvelope e ( "QPE/Application/systemtime", "setDocument(QString)" ); |
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 ( ); | 124 | e << QString ( ); |
130 | } | 125 | } |
131 | } | 126 | } |
132 | 127 | ||
133 | int rv = a.exec(); | 128 | int rv = a.exec(); |
134 | 129 | ||
135 | delete d; | 130 | delete d; |
136 | 131 | ||
137 | ODevice::inst ( )-> setSoftSuspend ( false ); | 132 | ODevice::inst ( )-> setSoftSuspend ( false ); |
138 | 133 | ||
139 | return rv; | 134 | return rv; |
140 | } | 135 | } |
141 | 136 | ||
142 | static const char *pidfile_path = "/var/run/opie.pid"; | 137 | static const char *pidfile_path = "/var/run/opie.pid"; |
143 | 138 | ||
144 | void create_pidfile ( ) | 139 | void create_pidfile ( ) |