projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b18ea4
)
Fix crash when adding content via Ctrl-A with no film loaded.
author
Carl Hetherington
<cth@carlh.net>
Fri, 12 May 2017 21:53:42 +0000
(22:53 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 12 May 2017 21:53:42 +0000
(22:53 +0100)
src/wx/content_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/content_panel.cc
b/src/wx/content_panel.cc
index 1d748be5ff2d820becaaf50189f0470199fcd1a1..7b69791634478f27277c1d7d5c0b8a09a3b4dce3 100644
(file)
--- a/
src/wx/content_panel.cc
+++ b/
src/wx/content_panel.cc
@@
-270,7
+270,7
@@
ContentPanel::add_file_clicked ()
/* This method is also called when Ctrl-A is pressed, so check that our notebook page
is visible.
*/
- if (_parent->GetCurrentPage() != _panel) {
+ if (_parent->GetCurrentPage() != _panel
|| !_film
) {
return;
}