minor fixes
This commit is contained in:
+1
-7
@@ -8,14 +8,8 @@
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
QString real_app_dir;
|
||||
|
||||
QString get_app_dir() {
|
||||
if (real_app_dir.isEmpty()) {
|
||||
QString app_path = QCoreApplication::applicationFilePath();
|
||||
real_app_dir = app_path.left(app_path.lastIndexOf('/'));
|
||||
}
|
||||
return real_app_dir;
|
||||
return QCoreApplication::applicationDirPath();
|
||||
}
|
||||
|
||||
QString get_data_path() {
|
||||
|
||||
Reference in New Issue
Block a user