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)
|
void MainWindow::CheckProject(Project *project)
|
||||||
{
|
{
|
||||||
if (!project->IsOpen())
|
if (!project->IsOpen()) {
|
||||||
project->Open();
|
if (!project->Open()) {
|
||||||
|
delete mProject;
|
||||||
|
mProject = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QFileInfo inf(project->Filename());
|
QFileInfo inf(project->Filename());
|
||||||
const QString rootpath = project->GetProjectFile()->GetRootPath();
|
const QString rootpath = project->GetProjectFile()->GetRootPath();
|
||||||
|
|
Loading…
Reference in New Issue