summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-16 21:15:26 +0200
committerCarl Hetherington <cth@carlh.net>2023-06-16 21:15:26 +0200
commit11778a3e9acb687a3cfe3af8358824ad7086218c (patch)
treeb9e4acf4b95e205fa8da8ced3e0ca2e96d2dd35f
parent65895ac52ed072314080040f99978cdd77b5a5db (diff)
Fix crash when pressing Ctrl+T with no content (#2563).
-rw-r--r--src/wx/content_panel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index d394d42e9..5fa935fac 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -714,7 +714,7 @@ ContentPanel::remove_clicked (bool hotkey)
void
ContentPanel::timeline_clicked ()
{
- if (!_film) {
+ if (!_film || _film->content().empty()) {
return;
}