projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix crash on close.
[dcpomatic.git]
/
src
/
wx
/
controls.cc
diff --git
a/src/wx/controls.cc
b/src/wx/controls.cc
index feef2e91c53c87862abe0f9ff8baec2536a3c4ea..c48628ed1244a37c4abe70c682d34b9c76267dea 100644
(file)
--- a/
src/wx/controls.cc
+++ b/
src/wx/controls.cc
@@
-365,7
+365,9
@@
Controls::film_changed ()
update_position_slider ();
update_position_label ();
- _film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
+ if (_film) {
+ _film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
+ }
}
shared_ptr<Film>