diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-20 21:53:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-20 21:53:17 +0100 |
| commit | 9b9b78890c9c7bc36342e1b7d35de921208b05d8 (patch) | |
| tree | 81c892c5fbf67e81b9c608f97556ab459537f0ff /src | |
| parent | e2b032786691ae150da5ed56dbdc3e5711a9a991 (diff) | |
Speed up removing multiple pieces of content at the same time.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_panel.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index e7e3320f2..e3d51c37b 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -715,10 +715,7 @@ ContentPanel::remove_clicked(bool hotkey) return true; } - for (auto i: selected()) { - _film->remove_content(i); - } - + _film->remove_content(selected()); check_selection(); return false; } |
