summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/clockapplet/clock.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/applets/clockapplet/clock.cpp b/core/applets/clockapplet/clock.cpp
index c186fb3..ba079bf 100644
--- a/core/applets/clockapplet/clock.cpp
+++ b/core/applets/clockapplet/clock.cpp
@@ -22,6 +22,7 @@
22 22
23#include <qpe/global.h> 23#include <qpe/global.h>
24#include <qpe/qpeapplication.h> 24#include <qpe/qpeapplication.h>
25#include <qpe/qcopenvelope_qws.h>
25#include <qpe/config.h> 26#include <qpe/config.h>
26 27
27#include <qmainwindow.h> 28#include <qmainwindow.h>
@@ -31,6 +32,7 @@
31#include <qdatetime.h> 32#include <qdatetime.h>
32#include <qtimer.h> 33#include <qtimer.h>
33#include <qpopupmenu.h> 34#include <qpopupmenu.h>
35#include <qfile.h>
34#include <stdlib.h> 36#include <stdlib.h>
35 37
36 38
@@ -58,7 +60,16 @@ void LauncherClock::readConfig() {
58 60
59void LauncherClock::mouseReleaseEvent( QMouseEvent * ) 61void LauncherClock::mouseReleaseEvent( QMouseEvent * )
60{ 62{
61 Global::execute( "systemtime" ); 63 QCString setTimeApp;
64 if (QFile::exists(QPEApplication::qpeDir()+"bin/netsystemtime"))
65 setTimeApp="netsystemtime";
66 else setTimeApp="systemtime";
67 qDebug("app "+setTimeApp);
68 QCopEnvelope e("QPE/Application/"+setTimeApp, "setDocument(QString)");
69 QString lf = QString::null;
70
71 e << lf;
72
62} 73}
63 74
64 75