summaryrefslogtreecommitdiffhomepage
path: root/gui/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ui.cpp')
-rw-r--r--gui/ui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp
index dc608a7c..37b9b748 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -9,10 +9,11 @@
#include "ui.h"
#include "opentrack-logic/tracker.h"
#include "opentrack-compat/options.hpp"
-#include "library-path.hpp"
+#include "opentrack-library-path.h"
#include "new_file_dialog.h"
#include <QFileDialog>
#include <QDesktopServices>
+#include <QCoreApplication>
#ifndef _WIN32
# include <unistd.h>
@@ -21,7 +22,7 @@
#endif
MainWindow::MainWindow() :
- State(opentrack_library_path),
+ State(QCoreApplication::applicationDirPath() + OPENTRACK_LIBRARY_PATH),
pose_update_timer(this),
kbd_quit(QKeySequence("Ctrl+Q"), this),
is_refreshing_profiles(false)