summaryrefslogtreecommitdiffhomepage
path: root/gui/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-13 11:57:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-13 14:05:27 +0200
commit3599a5aa4b2f201a6b227f082ad1406a235c0da2 (patch)
tree22614f9bf76b6b52a21d5341e760eb07c503550f /gui/main.cpp
parentcbd441a670a4447d607d276dc604fae8a5928e3d (diff)
main: fix accessing build box's hardcoded drive
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 48fe8f74..b422a374 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -143,20 +143,21 @@ main(int argc, char** argv)
#endif
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
- QTranslator t;
QApplication app(argc, argv);
+#ifdef _WIN32
+ add_win32_path();
+#endif
+
+ MainWindow::set_working_directory();
+
#if !defined(__linux) && !defined _WIN32
// workaround QTBUG-38598
QCoreApplication::addLibraryPath(".");
#endif
set_qt_style();
- MainWindow::set_working_directory();
-
-#ifdef _WIN32
- add_win32_path();
-#endif
+ QTranslator t;
// QLocale::setDefault(QLocale("ru_RU")); // force i18n for testing