FIX:fixed incorrect display after adding files via add

Change-Id: Id812b40cb85a882a8c490ccdc2375e0d9b8e312d
This commit is contained in:
tao wang 2022-10-24 15:54:03 +08:00 committed by Lane.Wei
parent c24680e09d
commit 57c877ab9a
1 changed files with 1 additions and 1 deletions

View File

@ -7200,7 +7200,7 @@ void Plater::add_model(bool imperial_units/* = false*/)
if (!load_files(paths, strategy, ask_multi).empty()) {
if (get_project_name() == _L("Untitled") && paths.size() > 0) {
p->set_project_filename(wxString(paths[0].string()));
p->set_project_filename(wxString::FromUTF8(paths[0].string()));
}
wxGetApp().mainframe->update_title();