From 94611edc1942717faa15861adef25418e40ea626 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 23 Aug 2004 23:15:06 +0000 Subject: Do not hardcode /opt/QtPalmtop but use QPEApplication::qpeDir --- 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 @@ /* OPIE */ #include +#include #ifdef OPIE_IMPROVE_GUI_LATENCY #include #endif + + /* QT */ #include #include @@ -67,7 +70,7 @@ OManufacturerDB::OManufacturerDB() odebug << "OManufacturerDB: trying to read " << filename << oendl; if ( !QFile::exists( filename ) ) { - filename = "/opt/QtPalmtop/etc/manufacturers"; + filename = QPEApplication::qpeDir()+"/etc/manufacturers"; odebug << "OManufacturerDB: trying to read " << filename << oendl; if ( !QFile::exists( filename ) ) { -- cgit v0.9.0.2