diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-20 12:20:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-21 00:52:07 +0200 |
| commit | fd130fc0b0c7421c7b1af613ff1f31ba3fc4f03b (patch) | |
| tree | 0c71c5943d7a828d88843a005bd8b1608b868c83 | |
| parent | 2b38e2bb56be58db90577c42ec9f2f7586fb8e1c (diff) | |
Handle connections to the Hints object more correctly.
| -rw-r--r-- | src/wx/hints_dialog.cc | 8 | ||||
| -rw-r--r-- | src/wx/hints_dialog.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/hints_dialog.cc b/src/wx/hints_dialog.cc index db576da16..2ab28fa6c 100644 --- a/src/wx/hints_dialog.cc +++ b/src/wx/hints_dialog.cc @@ -117,10 +117,10 @@ HintsDialog::film_change (ChangeType type) _finished = false; _hints.reset (new Hints (_film)); - _hints->Hint.connect (bind (&HintsDialog::hint, this, _1)); - _hints->Progress.connect (bind (&HintsDialog::progress, this, _1)); - _hints->Pulse.connect (bind (&HintsDialog::pulse, this)); - _hints->Finished.connect (bind (&HintsDialog::finished, this)); + _hints_hint_connection = _hints->Hint.connect(bind(&HintsDialog::hint, this, _1)); + _hints_progress_connection = _hints->Progress.connect(bind(&HintsDialog::progress, this, _1)); + _hints_pulse_connection = _hints->Pulse.connect(bind(&HintsDialog::pulse, this)); + _hints_finished_connection = _hints->Finished.connect(bind(&HintsDialog::finished, this)); _hints->start (); } diff --git a/src/wx/hints_dialog.h b/src/wx/hints_dialog.h index 9124d5c13..37d36459c 100644 --- a/src/wx/hints_dialog.h +++ b/src/wx/hints_dialog.h @@ -56,4 +56,8 @@ private: boost::signals2::scoped_connection _film_change_connection; boost::signals2::scoped_connection _film_content_change_connection; + boost::signals2::scoped_connection _hints_hint_connection; + boost::signals2::scoped_connection _hints_progress_connection; + boost::signals2::scoped_connection _hints_pulse_connection; + boost::signals2::scoped_connection _hints_finished_connection; }; |
