summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r--gui/main-window.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 30211128..39d97a22 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -435,12 +435,6 @@ void MainWindow::startTracker()
const bool is_inertial = ui.video_frame->layout() == nullptr;
updateButtonState(true, is_inertial);
- // Update the state of the options window directly.
- // Might be better to emit signals and allow the options window
- // to connect its slots to them (?)
- if (options_widget)
- options_widget->update_widgets_states(true);
-
ui.btnStopTracker->setFocus();
}
@@ -474,9 +468,6 @@ void MainWindow::stopTracker()
}
updateButtonState(false, false);
- if (options_widget)
- options_widget->update_widgets_states(false);
-
set_title();
ui.btnStartTracker->setFocus();
@@ -604,7 +595,6 @@ void MainWindow::show_options_dialog()
if (mk_window(&options_widget, [&](bool flag) -> void { set_keys_enabled(!flag); }))
{
connect(options_widget.get(), &OptionsDialog::closing, this, &MainWindow::register_shortcuts);
- options_widget->update_widgets_states(work != nullptr);
}
}