diff options
Diffstat (limited to 'gui/process_detector.cpp')
-rw-r--r-- | gui/process_detector.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/process_detector.cpp b/gui/process_detector.cpp index e9f58aad..f7aeb164 100644 --- a/gui/process_detector.cpp +++ b/gui/process_detector.cpp @@ -7,8 +7,9 @@ */ #include "process_detector.h" -#include "main-window.hpp" #include "compat/process-list.hpp" +#include "options/options.hpp" + #include <QList> #include <QFileDialog> #include <QComboBox> @@ -20,6 +21,8 @@ static constexpr inline auto RECORD_SEPARATOR = QChar(char(0x1e)); // RS ^] static constexpr inline auto UNIT_SEPARATOR = QChar(char(0x1f)); // US ^_ +using namespace options; + void proc_detector_settings::set_game_list(const QString &game_list) { group::with_global_settings_object([&](QSettings& settings) { @@ -79,7 +82,7 @@ void BrowseButton::browse() tr("Set executable name"), dir_path, tr("Executable (*.exe);;All Files (*)")); - main_window::set_working_directory(); + QDir::setCurrent(OPENTRACK_BASE_PATH); filename = QFileInfo(filename).fileName(); if (!filename.isNull()) twi->setText(filename); |