Fixed path to translations and standard measurements on Mac OS X.
--HG-- branch : develop
This commit is contained in:
parent
0a7097f259
commit
214c4a50b6
|
@ -150,7 +150,11 @@ QString VAbstractApplication::translationsPath(const QString &locale) const
|
|||
}
|
||||
else
|
||||
{
|
||||
QDir dir(QApplication::applicationDirPath() + trPath);
|
||||
QDir appDir = QDir(qApp->applicationDirPath());
|
||||
appDir.cdUp();
|
||||
appDir.cdUp();
|
||||
appDir.cdUp();
|
||||
QDir dir(appDir.absolutePath() + trPath);
|
||||
if (dir.exists())
|
||||
{
|
||||
return dir.absolutePath();
|
||||
|
|
|
@ -95,7 +95,11 @@ QString VCommonSettings::StandardTablesPath() const
|
|||
}
|
||||
else
|
||||
{
|
||||
QDir dir(QApplication::applicationDirPath() + stPath);
|
||||
QDir appDir = QDir(qApp->applicationDirPath());
|
||||
appDir.cdUp();
|
||||
appDir.cdUp();
|
||||
appDir.cdUp();
|
||||
QDir dir(appDir.absolutePath() + stPath);
|
||||
if (dir.exists())
|
||||
{
|
||||
return dir.absolutePath();
|
||||
|
|
Loading…
Reference in New Issue
Block a user