File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ DESTDIR = ./bin
9
9
10
10
SUBDIRS = plugins/scg \
11
11
# plugins/scn \
12
- plugins/scs \
12
+ # plugins/scs \
13
13
kbe
14
14
15
15
# win32: SUBDIRS += updater
Original file line number Diff line number Diff line change @@ -32,7 +32,17 @@ int main(int argc, char *argv[])
32
32
a.setApplicationName (" KBE" );
33
33
34
34
a.setAttribute (Qt::AA_DontShowIconsInMenus, false );
35
- QDir root_dir = a.applicationDirPath ();
35
+
36
+ QDir binPath (QCoreApplication::applicationDirPath ());
37
+
38
+ /* Set working directory */
39
+ #ifdef Q_OS_MAC
40
+ binPath.cdUp (); /* Fix this on Mac because of the .app folder, */
41
+ binPath.cdUp (); /* which means that the actual executable is */
42
+ binPath.cdUp (); /* three levels deep. Grrr. */
43
+ #endif
44
+
45
+ QDir root_dir = binPath;
36
46
37
47
// #if KBE_DEBUG_MODE
38
48
// root_dir.cdUp();
@@ -48,6 +58,7 @@ int main(int argc, char *argv[])
48
58
49
59
// splash.showMessage("Load Translation", Qt::AlignBottom | Qt::AlignHCenter);
50
60
61
+
51
62
QTranslator myappTranslator;
52
63
myappTranslator.load (" :/media/translations/lang_" + QLocale::system ().name () + " .qm" );
53
64
a.installTranslator (&myappTranslator);
You can’t perform that action at this time.
0 commit comments