minor fixes

This commit is contained in:
itsmattkc
2019-02-03 16:29:29 +11:00
parent c9f6868198
commit 4e72f1f855
2 changed files with 2 additions and 7 deletions
+1 -7
View File
@@ -8,14 +8,8 @@
#include "debug.h" #include "debug.h"
QString real_app_dir;
QString get_app_dir() { QString get_app_dir() {
if (real_app_dir.isEmpty()) { return QCoreApplication::applicationDirPath();
QString app_path = QCoreApplication::applicationFilePath();
real_app_dir = app_path.left(app_path.lastIndexOf('/'));
}
return real_app_dir;
} }
QString get_data_path() { QString get_data_path() {
+1
View File
@@ -251,6 +251,7 @@ TRANSLATIONS += \
ts/olive_es.ts \ ts/olive_es.ts \
ts/olive_fr.ts \ ts/olive_fr.ts \
ts/olive_it.ts \ ts/olive_it.ts \
ts/olive_cs.ts \
ts/olive_ru.ts ts/olive_ru.ts
win32 { win32 {