4166: Avoid exceptions/hangs when saving/importing model files

Edited by Simon Barner

Merge request reports

Loading