summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-08 13:18:34 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-08 13:18:34 +0000
commit726f18338c5aaf9119bd10517d23584e32fdeccb (patch)
treeb72552920e46935916061dd9c6e05a0a2957e5ea /src
parent836f45cf1b64701705c67aaca02376365d506c90 (diff)
Hand apply 73fb7a2a537ea736c5ea8305061e64e129b4878b from master; lose connection to Film when destroying TimelineDialog.
Diffstat (limited to 'src')
-rw-r--r--src/wx/timeline_dialog.cc2
-rw-r--r--src/wx/timeline_dialog.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/timeline_dialog.cc b/src/wx/timeline_dialog.cc
index 2da375ecd..6ec52ff38 100644
--- a/src/wx/timeline_dialog.cc
+++ b/src/wx/timeline_dialog.cc
@@ -54,7 +54,7 @@ TimelineDialog::TimelineDialog (ContentPanel* cp, shared_ptr<Film> film)
film_changed (Film::SEQUENCE_VIDEO);
_snap->Bind (wxEVT_COMMAND_CHECKBOX_CLICKED, boost::bind (&TimelineDialog::sequence_video_toggled, this));
- film->Changed.connect (bind (&TimelineDialog::film_changed, this, _1));
+ _film_changed_connection = film->Changed.connect (bind (&TimelineDialog::film_changed, this, _1));
}
void
diff --git a/src/wx/timeline_dialog.h b/src/wx/timeline_dialog.h
index 802aaf245..0ee345154 100644
--- a/src/wx/timeline_dialog.h
+++ b/src/wx/timeline_dialog.h
@@ -38,4 +38,5 @@ private:
Timeline _timeline;
wxCheckBox* _snap;
wxCheckBox* _sequence_video;
+ boost::signals2::scoped_connection _film_changed_connection;
};