projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dce2b2
)
Fix crash on file -> close.
author
Carl Hetherington
<cth@carlh.net>
Tue, 15 Jan 2019 16:33:21 +0000
(16:33 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 15 Jan 2019 16:33:21 +0000
(16:33 +0000)
src/wx/audio_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_panel.cc
b/src/wx/audio_panel.cc
index ba2a12e9fb6359a175172d403b3c911b4519caf9..ccdb579079dc166ef79acc1269760de64ae2f0ea 100644
(file)
--- a/
src/wx/audio_panel.cc
+++ b/
src/wx/audio_panel.cc
@@
-177,6
+177,10
@@
AudioPanel::~AudioPanel ()
void
AudioPanel::film_changed (Film::Property property)
{
+ if (!_parent->film()) {
+ return;
+ }
+
switch (property) {
case Film::AUDIO_CHANNELS:
case Film::AUDIO_PROCESSOR: