This commit is contained in:
PKEuS 2012-10-14 17:40:51 +02:00
parent 3064b48156
commit 4995ab7828
1 changed files with 7 additions and 2 deletions

View File

@ -912,8 +912,13 @@ void MainWindow::LoadProjectFile(const QString &filePath)
void MainWindow::CheckProject(Project *project)
{
if (!project->IsOpen())
project->Open();
if (!project->IsOpen()) {
if (!project->Open()) {
delete mProject;
mProject = 0;
return;
}
}
QFileInfo inf(project->Filename());
const QString rootpath = project->GetProjectFile()->GetRootPath();