diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-12 22:53:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-12 22:53:42 +0100 |
| commit | b6d38b0b7125811b7eb58b55adcd5b8b7aac9266 (patch) | |
| tree | 98812252b68ce4e4aef8d7b6bf098c6a1cdeefe7 /src | |
| parent | 1b18ea4593c469e9f856f9a0909dcc4cdfad7274 (diff) | |
Fix crash when adding content via Ctrl-A with no film loaded.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_panel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 1d748be5f..7b6979163 100644 --- 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; } |
