From: <hep...@us...> - 2009-12-25 08:05:01
|
Revision: 1065 http://qterm.svn.sourceforge.net/qterm/?rev=1065&view=rev Author: hephooey Date: 2009-12-25 08:04:55 +0000 (Fri, 25 Dec 2009) Log Message: ----------- Different path structure when qterm.cfg and qterm are in the same directory. Modified Paths: -------------- trunk/qterm-qt4/src/qtermglobal.cpp Modified: trunk/qterm-qt4/src/qtermglobal.cpp =================================================================== --- trunk/qterm-qt4/src/qtermglobal.cpp 2009-12-25 08:04:51 UTC (rev 1064) +++ trunk/qterm-qt4/src/qtermglobal.cpp 2009-12-25 08:04:55 UTC (rev 1065) @@ -489,6 +489,15 @@ m_pathLib = fi.path() + '/'; #else QString prefix = QCoreApplication::applicationDirPath(); + + QFileInfo conf(prefix+"/qterm.cfg"); + if (conf.exists()) { + QString path= QCoreApplication::applicationDirPath()+"/"; + m_pathLib = path; + m_pathPic = path; + m_pathCfg = path; + } + prefix.chop(3); // "bin" m_pathCfg = QDir::homePath() + "/.qterm/"; if (!isPathExist(m_pathCfg)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |