Fix crash when adding content via Ctrl-A with no film loaded.
authorCarl Hetherington <cth@carlh.net>
Fri, 12 May 2017 21:53:42 +0000 (22:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 May 2017 21:53:42 +0000 (22:53 +0100)
src/wx/content_panel.cc

index 1d748be5ff2d820becaaf50189f0470199fcd1a1..7b69791634478f27277c1d7d5c0b8a09a3b4dce3 100644 (file)
@@ -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;
        }