Fixed path to translations and standard measurements on Mac OS X.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-10-25 17:54:51 +03:00
parent 0a7097f259
commit 214c4a50b6
2 changed files with 10 additions and 2 deletions

View File

@ -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();

View File

@ -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();