summaryrefslogtreecommitdiff
authortille <tille>2002-06-27 10:14:52 (UTC)
committer tille <tille>2002-06-27 10:14:52 (UTC)
commitf2cd92301181f3bc895b0d1701183e4da7b52812 (patch) (side-by-side diff)
treece9f50855ea4a294e8edb0022fc38a92ab6a011f
parent7c3fe018ad8855011c6e0441ed1bef2c09e293f2 (diff)
downloadopie-f2cd92301181f3bc895b0d1701183e4da7b52812.zip
opie-f2cd92301181f3bc895b0d1701183e4da7b52812.tar.gz
opie-f2cd92301181f3bc895b0d1701183e4da7b52812.tar.bz2
ntpservers is in qpeDir
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp
index 0abb401..083b50f 100644
--- a/noncore/settings/netsystemtime/ntp.cpp
+++ b/noncore/settings/netsystemtime/ntp.cpp
@@ -7,12 +7,13 @@
#include <qsocket.h>
#include <qlineedit.h>
#include <qspinbox.h>
#include <qmessagebox.h>
#include <qmultilineedit.h>
#include <opie/oprocess.h>
+#include <qpe/qpeapplication.h>
#include <qpe/config.h>
#include <qpe/global.h>
#include <qpe/timeconversion.h>
#include <qpe/tzselect.h>
#include <qpe/timestring.h>
#include <qpe/qpedialog.h>
@@ -21,14 +22,14 @@
#include <stdlib.h>
Ntp::Ntp( QWidget* parent, const char* name, WFlags fl )
: SetDateTime( parent, name, fl )
{
-
- Config ntpSrvs("/etc/ntpservers",Config::File);
+ qDebug("%s", QPEApplication::qpeDir().latin1());
+ Config ntpSrvs(QPEApplication::qpeDir()+"etc/ntpservers",Config::File);
ntpSrvs.setGroup("servers");
int srvCount = ntpSrvs.readNumEntry("count", 0 );
for (int i = 0; i < srvCount; i++)
{
ntpSrvs.setGroup(QString::number(i));
ComboNtpSrv->insertItem( ntpSrvs.readEntry("name") );