Fixed #3216 (GUI: Crash when cancel is clicked in the New Project dialog)
This commit is contained in:
parent
a8f2dc1fec
commit
7c4c0b628b
|
@ -880,7 +880,9 @@ void MainWindow::NewProjectFile()
|
||||||
QString(),
|
QString(),
|
||||||
filter);
|
filter);
|
||||||
|
|
||||||
if (!filepath.isEmpty()) {
|
if (filepath.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
EnableProjectActions(true);
|
EnableProjectActions(true);
|
||||||
QFileInfo inf(filepath);
|
QFileInfo inf(filepath);
|
||||||
const QString filename = inf.fileName();
|
const QString filename = inf.fileName();
|
||||||
|
@ -890,7 +892,7 @@ void MainWindow::NewProjectFile()
|
||||||
mProject = new Project(filepath, this);
|
mProject = new Project(filepath, this);
|
||||||
mProject->Create();
|
mProject->Create();
|
||||||
mProject->Edit();
|
mProject->Edit();
|
||||||
}
|
|
||||||
AddProjectMRU(filepath);
|
AddProjectMRU(filepath);
|
||||||
CheckProject(mProject);
|
CheckProject(mProject);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue