diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/library-path.cpp | 4 | ||||
-rw-r--r-- | gui/library-path.hpp | 1 | ||||
-rw-r--r-- | gui/ui.cpp | 5 |
3 files changed, 3 insertions, 7 deletions
diff --git a/gui/library-path.cpp b/gui/library-path.cpp deleted file mode 100644 index 683dc346..00000000 --- a/gui/library-path.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#include "library-path.hpp" -#include "opentrack-library-path.h" - -const char* opentrack_library_path = OPENTRACK_LIBRARY_PATH; diff --git a/gui/library-path.hpp b/gui/library-path.hpp deleted file mode 100644 index b6454852..00000000 --- a/gui/library-path.hpp +++ /dev/null @@ -1 +0,0 @@ -extern "C" const char* opentrack_library_path; @@ -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) |