summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/kmolcalc.cpp
Unidiff
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
@@ -15,6 +15,7 @@
15#include <qdict.h> 15#include <qdict.h>
16#include <qdir.h> 16#include <qdir.h>
17#include <qfile.h> 17#include <qfile.h>
18#include <qpe/qpeapplication.h>
18#include <iostream.h> 19#include <iostream.h>
19 20
20 21
@@ -36,7 +37,7 @@ void KMolCalc::readElstable() {
36 if (elstable) delete elstable; 37 if (elstable) delete elstable;
37 elstable = new QDict<SubUnit> (197, TRUE); 38 elstable = new QDict<SubUnit> (197, TRUE);
38 elstable->setAutoDelete(TRUE); 39 elstable->setAutoDelete(TRUE);
39 mwfile = "/home/opie/opie/noncore/apps/oxygen/kmolweights"; 40 mwfile = QPEApplication::qpeDir() +"share/oxygen/kmolweights";
40 QFile f(mwfile); 41 QFile f(mwfile);
41 if (f.exists()) readMwfile(f); 42 if (f.exists()) readMwfile(f);
42} 43}