Fix crash when pressing Ctrl+T with no content (#2563).
authorCarl Hetherington <cth@carlh.net>
Fri, 16 Jun 2023 19:15:26 +0000 (21:15 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 16 Jun 2023 19:15:26 +0000 (21:15 +0200)
src/wx/content_panel.cc

index d394d42e926851bf120ad41fde46f8b9f8338ac5..5fa935fac3708b4052de4d6516565402007a21ab 100644 (file)
@@ -714,7 +714,7 @@ ContentPanel::remove_clicked (bool hotkey)
 void
 ContentPanel::timeline_clicked ()
 {
-       if (!_film) {
+       if (!_film || _film->content().empty()) {
                return;
        }