fix(editor): DataModel not remembering file path when opening rather than saving
This commit is contained in:
parent
6d733e82d4
commit
9d72d7f47a
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ std::shared_ptr<DataModel> DataModel::LoadFromFile(std::string path) {
|
||||||
newModel->services[className] = std::dynamic_pointer_cast<Service>(service);
|
newModel->services[className] = std::dynamic_pointer_cast<Service>(service);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newModel->currentFile = path;
|
||||||
newModel->Init();
|
newModel->Init();
|
||||||
|
|
||||||
return newModel;
|
return newModel;
|
||||||
|
|
Loading…
Add table
Reference in a new issue