From: Kashyap Ramesh Puranik Date: Sun, 28 Jun 2009 18:52:36 +0000 (+0000) Subject: User defined aliases working now. X-Git-Tag: v4.3.80~1^2~2 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=0bead0303cc202cc7f4fa78875a8433376a1722d;p=libqmvoc.git User defined aliases working now. svn path=/branches/kalzium/gsoc2009/kalzium/libscience/; revision=988805 --- diff --git a/libscience/moleculeparser.cpp b/libscience/moleculeparser.cpp index ccd963b..33ae67b 100644 --- a/libscience/moleculeparser.cpp +++ b/libscience/moleculeparser.cpp @@ -383,7 +383,7 @@ MoleculeParser::expandTerm (const QString& _group) QString temp; // A temporary QString used in Regular expressions // Search in User defined aliases. - QString fileName = KStandardDirs::locate( "data", "libkdeedu/data/symbols.csv"); + QString fileName = KStandardDirs::locate( "data", "libkdeedu/data/symbols2.csv"); QFile file(fileName); // Check file validity @@ -405,6 +405,10 @@ MoleculeParser::expandTerm (const QString& _group) return (fullForm); } } + else + { + kDebug() << fileName << " could not be opened!"; + } // Find the system defined aliases // Open the file @@ -431,7 +435,7 @@ MoleculeParser::expandTerm (const QString& _group) } else { - kDebug() << fileName << " could not be opened"; + kDebug() << fileName << " could not be opened!"; } // Sample expansions, work even when file is not found, testing purposes