From 0bead0303cc202cc7f4fa78875a8433376a1722d Mon Sep 17 00:00:00 2001 From: Kashyap Ramesh Puranik Date: Sun, 28 Jun 2009 18:52:36 +0000 Subject: [PATCH] User defined aliases working now. svn path=/branches/kalzium/gsoc2009/kalzium/libscience/; revision=988805 --- libscience/moleculeparser.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.47.3