diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 6 | ||||
-rw-r--r-- | gui/mapping-dialog.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index b0f26cbe..637cbef5 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -162,9 +162,9 @@ MainWindow::MainWindow() : this, [&](const QString&) { if (pFilterDialog) pFilterDialog = nullptr; }); - connect(&m.tracker_dll, base_value::signal_fun<QString>(), this, &MainWindow::save_modules, Qt::QueuedConnection); - connect(&m.protocol_dll, base_value::signal_fun<QString>(), this, &MainWindow::save_modules, Qt::QueuedConnection); - connect(&m.filter_dll, base_value::signal_fun<QString>(), this, &MainWindow::save_modules, Qt::QueuedConnection); + connect(&m.tracker_dll, base_value::value_changed<QString>(), this, &MainWindow::save_modules, Qt::QueuedConnection); + connect(&m.protocol_dll, base_value::value_changed<QString>(), this, &MainWindow::save_modules, Qt::QueuedConnection); + connect(&m.filter_dll, base_value::value_changed<QString>(), this, &MainWindow::save_modules, Qt::QueuedConnection); tie_setting(m.tracker_dll, ui.iconcomboTrackerSource); tie_setting(m.protocol_dll, ui.iconcomboProtocol); diff --git a/gui/mapping-dialog.cpp b/gui/mapping-dialog.cpp index 607563a7..8d754b6b 100644 --- a/gui/mapping-dialog.cpp +++ b/gui/mapping-dialog.cpp @@ -116,7 +116,7 @@ void MapWidget::load() if (altp) { connect(&axis.opts.altp, - base_value::signal_fun<bool>(), + base_value::value_changed<bool>(), this, [&](bool f) -> void {qfc.setEnabled(f); qfc.force_redraw();}); qfc.setEnabled(axis.opts.altp); |