|
From: <si...@us...> - 2011-10-15 21:08:51
|
Revision: 1294
http://qterm.svn.sourceforge.net/qterm/?rev=1294&view=rev
Author: sidos
Date: 2011-10-15 21:08:45 +0000 (Sat, 15 Oct 2011)
Log Message:
-----------
pathLib is relative to mac app bundle
Modified Paths:
--------------
trunk/qterm-qt4/src/qtermglobal.cpp
Modified: trunk/qterm-qt4/src/qtermglobal.cpp
===================================================================
--- trunk/qterm-qt4/src/qtermglobal.cpp 2011-10-11 03:49:43 UTC (rev 1293)
+++ trunk/qterm-qt4/src/qtermglobal.cpp 2011-10-15 21:08:45 UTC (rev 1294)
@@ -433,6 +433,7 @@
{
QDir dir;
QFileInfo fi;
+ QString prefix = QCoreApplication::applicationDirPath();
#ifdef Q_OS_MACX
// $HOME/Library/QTerm/
QString pathHome = QDir::homePath();
@@ -441,10 +442,8 @@
return false;
// get executive file path
- fi.setFile(param);
- m_pathLib = fi.path() + '/';
+ m_pathLib = prefix + "/../Resources";
#else
- QString prefix = QCoreApplication::applicationDirPath();
QFileInfo conf(prefix+"/qterm.cfg");
if (conf.exists()) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|