GUI: Leave new project file open and selected.
When user creates new project file one probably wants to keep using the same project file. So leave it open for use.
This commit is contained in:
parent
0f4d067926
commit
d4210f4fc0
|
@ -713,10 +713,13 @@ void MainWindow::NewProjectFile()
|
|||
if (!filepath.isEmpty())
|
||||
{
|
||||
mUI.mActionCloseProjectFile->setEnabled(true);
|
||||
Project prj(filepath, this);
|
||||
prj.Create();
|
||||
prj.Edit();
|
||||
mUI.mActionEditProjectFile->setEnabled(true);
|
||||
|
||||
if (mProject)
|
||||
delete mProject;
|
||||
mProject = new Project(filepath, this);
|
||||
mProject->Create();
|
||||
mProject->Edit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue