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:
Kimmo Varis 2010-08-15 22:51:15 +03:00
parent 0f4d067926
commit d4210f4fc0
1 changed files with 6 additions and 3 deletions

View File

@ -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();
}
}