summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/kmolcalc.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/oxygen/kmolcalc.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/kmolcalc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/kmolcalc.cpp b/noncore/apps/oxygen/kmolcalc.cpp
index 0ba52da..33666b1 100644
--- a/noncore/apps/oxygen/kmolcalc.cpp
+++ b/noncore/apps/oxygen/kmolcalc.cpp
@@ -16,4 +16,5 @@
#include <qdir.h>
#include <qfile.h>
+#include <qpe/qpeapplication.h>
#include <iostream.h>
@@ -37,5 +38,5 @@ void KMolCalc::readElstable() {
elstable = new QDict<SubUnit> (197, TRUE);
elstable->setAutoDelete(TRUE);
- mwfile = "/home/opie/opie/noncore/apps/oxygen/kmolweights";
+ mwfile = QPEApplication::qpeDir() +"share/oxygen/kmolweights";
QFile f(mwfile);
if (f.exists()) readMwfile(f);