call correct load_files at MacOpenFiles

This commit is contained in:
David Kocik 2020-11-27 12:51:49 +01:00
parent ca09bf0805
commit a650801b80
2 changed files with 12 additions and 3 deletions

View file

@ -2132,7 +2132,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
#if ENABLE_DRAG_AND_DROP_FIX
this->q->Bind(EVT_LOAD_MODEL_OTHER_INSTANCE, [this](LoadFromOtherInstanceEvent& evt) {
BOOST_LOG_TRIVIAL(debug) << "received load from other instance event ";
BOOST_LOG_TRIVIAL(error) << "received load from other instance event (1)";
wxArrayString input_files;
for (size_t i = 0; i < evt.data.size(); ++i) {
input_files.push_back(from_u8(evt.data[i].string()));
@ -2142,7 +2142,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
});
#else
this->q->Bind(EVT_LOAD_MODEL_OTHER_INSTANCE, [this](LoadFromOtherInstanceEvent &evt) {
BOOST_LOG_TRIVIAL(debug) << "received load from other instance event ";
BOOST_LOG_TRIVIAL(error) << "received load from other instance event (2)";
this->load_files(evt.data, true, true);
});
#endif // ENABLE_DRAG_AND_DROP_FIX