diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-15 03:40:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-15 18:03:58 +0200 |
| commit | 3bc9ca466dc3e9afaf290283d6895338f23c948d (patch) | |
| tree | 0cec67d59b8891fa14fa3e34eccc5dddb0418d81 | |
| parent | 21415bdb69a99c4fc36cf4b5e5160a171bb1cad4 (diff) | |
Examine multiple single files in one go.
| -rw-r--r-- | src/wx/content_panel.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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<boost::filesystem::path> paths) /* XXX: check for lots of files here and do something */ + vector<shared_ptr<Content>> 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())); } |
