Fixed #4284
This commit is contained in:
parent
3064b48156
commit
4995ab7828
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue