From 3bc9ca466dc3e9afaf290283d6895338f23c948d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Jul 2025 03:40:20 +0200 Subject: Examine multiple single files in one go. --- src/wx/content_panel.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 5803c3257..e7e3320f2 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -962,10 +962,14 @@ ContentPanel::add_files(vector paths) /* XXX: check for lots of files here and do something */ + vector> content; try { for (auto i: paths) { - _film->examine_and_add_content(content_factory(i)); + for (auto j: content_factory(i)) { + content.push_back(j); + } } + _film->examine_and_add_content(content); } catch (exception& e) { error_dialog(_parent, std_to_wx(e.what())); } -- cgit v1.2.3