FIX: [STUDIO-2213] project title of restored new project

Change-Id: Ia8255016f77942274c9cf4f704115766735a820b
This commit is contained in:
chunmao.guo 2023-03-07 11:30:59 +08:00 committed by Lane.Wei
parent 8292486c3a
commit 2bb8875e30
1 changed files with 2 additions and 0 deletions

View File

@ -7658,6 +7658,8 @@ void Plater::load_project(wxString const& filename2,
// if res is empty no data has been loaded
if (!res.empty() && (load_restore || !(strategy & LoadStrategy::Silence))) {
p->set_project_filename(load_restore ? originfile : filename);
if (load_restore && originfile.IsEmpty())
p->set_project_name(_L("Untitled"));
} else {
if (using_exported_file())
p->set_project_filename(filename);