Fix error checking during bulk export

There is no reason to check for file extension nor special characters
when a directory is picked.
This commit is contained in:
Martin Šach 2024-12-13 10:00:48 +01:00 committed by Lukas Matena
parent 7cd7af5730
commit 3896ddc40c

View File

@ -5947,11 +5947,6 @@ std::optional<fs::path> Plater::get_multiple_output_dir(const std::string &start
} }
const fs::path output_path{into_path(dlg.GetPath())}; const fs::path output_path{into_path(dlg.GetPath())};
if (auto error{check_output_path_has_error(output_path)}) {
const t_link_clicked on_link_clicked = [](const std::string& key) -> void { wxGetApp().jump_to_option(key); };
ErrorDialog(this, *error, on_link_clicked).ShowModal();
return std::nullopt;
}
return output_path; return output_path;
} }