summaryrefslogtreecommitdiffhomepage
path: root/gui/main.cpp
diff options
context:
space:
mode:
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