diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-08 20:41:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-08 20:41:35 +0100 |
| commit | 276dcd0813277b46a336e12ec6e1a9b86ee4ee18 (patch) | |
| tree | 6429f767ed39cc56c861c8c8de8dfc00eb27f172 /src | |
| parent | 92f024ea58c7279b8096e5e9f60f9cb2613e8a91 (diff) | |
Try to fix crash reported in active_jobs_changed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_panel.cc | 3 | ||||
| -rw-r--r-- | src/wx/audio_panel.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index ae4ae2f02..af2470fa6 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -107,8 +107,7 @@ AudioPanel::AudioPanel (ContentPanel* p) _gain_calculate_button->Bind (wxEVT_BUTTON, boost::bind (&AudioPanel::gain_calculate_button_clicked, this)); _mapping_connection = _mapping->Changed.connect (boost::bind (&AudioPanel::mapping_changed, this, _1)); - - JobManager::instance()->ActiveJobsChanged.connect (boost::bind (&AudioPanel::active_jobs_changed, this, _1, _2)); + _active_jobs_connection = JobManager::instance()->ActiveJobsChanged.connect (boost::bind (&AudioPanel::active_jobs_changed, this, _1, _2)); add_to_grid (); } diff --git a/src/wx/audio_panel.h b/src/wx/audio_panel.h index 56b6fbe84..09aae0552 100644 --- a/src/wx/audio_panel.h +++ b/src/wx/audio_panel.h @@ -67,4 +67,5 @@ private: AudioDialog* _audio_dialog; boost::signals2::scoped_connection _mapping_connection; + boost::signals2::scoped_connection _active_jobs_connection; }; |
