summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-08-23 23:15:06 (UTC)
committer zecke <zecke>2004-08-23 23:15:06 (UTC)
commit94611edc1942717faa15861adef25418e40ea626 (patch) (unidiff)
treeea45e973c948c50adb4ac813255b57193b919574 /libopie2
parentf8f1d4f340b591f21cd7c10259da1241ecf69dd9 (diff)
downloadopie-94611edc1942717faa15861adef25418e40ea626.zip
opie-94611edc1942717faa15861adef25418e40ea626.tar.gz
opie-94611edc1942717faa15861adef25418e40ea626.tar.bz2
Do not hardcode /opt/QtPalmtop but use QPEApplication::qpeDir
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/omanufacturerdb.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopie2/opienet/omanufacturerdb.cpp b/libopie2/opienet/omanufacturerdb.cpp
index 3003e12..32bae0a 100644
--- a/libopie2/opienet/omanufacturerdb.cpp
+++ b/libopie2/opienet/omanufacturerdb.cpp
@@ -32,10 +32,13 @@
32 32
33/* OPIE */ 33/* OPIE */
34#include <opie2/odebug.h> 34#include <opie2/odebug.h>
35#include <qpe/qpeapplication.h>
35#ifdef OPIE_IMPROVE_GUI_LATENCY 36#ifdef OPIE_IMPROVE_GUI_LATENCY
36#include <qpe/global.h> 37#include <qpe/global.h>
37#endif 38#endif
38 39
40
41
39/* QT */ 42/* QT */
40#include <qapplication.h> 43#include <qapplication.h>
41#include <qfile.h> 44#include <qfile.h>
@@ -67,7 +70,7 @@ OManufacturerDB::OManufacturerDB()
67 odebug << "OManufacturerDB: trying to read " << filename << oendl; 70 odebug << "OManufacturerDB: trying to read " << filename << oendl;
68 if ( !QFile::exists( filename ) ) 71 if ( !QFile::exists( filename ) )
69 { 72 {
70 filename = "/opt/QtPalmtop/etc/manufacturers"; 73 filename = QPEApplication::qpeDir()+"/etc/manufacturers";
71 odebug << "OManufacturerDB: trying to read " << filename << oendl; 74 odebug << "OManufacturerDB: trying to read " << filename << oendl;
72 if ( !QFile::exists( filename ) ) 75 if ( !QFile::exists( filename ) )
73 { 76 {