diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 20:41:45 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 20:41:45 +0200 |
commit | 62ffadd048a06b8da5ed42e1f7458649f7dabf2b (patch) | |
tree | 8bf917754be72616c97cbc0bb66a301aab247470 | |
parent | 9f707a60ec47d026d250ec24bfc6695e5b0aea25 (diff) |
gui: fix after 77cf67d61c8f6ae7ec00fd069b0e6586927069a3
-rw-r--r-- | gui/main-window.cpp | 10 | ||||
-rw-r--r-- | gui/options-dialog.cpp | 3 | ||||
-rw-r--r-- | gui/options-dialog.hpp | 2 |
3 files changed, 0 insertions, 15 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); } } diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index 0df5f854..c7ecfe08 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -169,6 +169,3 @@ void OptionsDialog::doCancel() emit closing(); } -void OptionsDialog::update_widgets_states(bool tracker_is_running) -{ -} diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp index 4ab8301e..b0e285e8 100644 --- a/gui/options-dialog.hpp +++ b/gui/options-dialog.hpp @@ -13,8 +13,6 @@ signals: void closing(); public: OptionsDialog(std::function<void(bool)> pause_keybindings); -public slots: - void update_widgets_states(bool tracker_is_running); private: main_settings main; std::function<void(bool)> pause_keybindings; |