summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-09 20:41:45 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-09 20:41:45 +0200
commit62ffadd048a06b8da5ed42e1f7458649f7dabf2b (patch)
tree8bf917754be72616c97cbc0bb66a301aab247470 /gui/main-window.cpp
parent9f707a60ec47d026d250ec24bfc6695e5b0aea25 (diff)
gui: fix after 77cf67d61c8f6ae7ec00fd069b0e6586927069a3
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);
}
}