Refactoring: early return
This commit is contained in:
parent
80290a15e0
commit
90a3759479
|
@ -1650,7 +1650,8 @@ void MainWindow::enableProjectOpenActions(bool enable)
|
|||
void MainWindow::openRecentProject()
|
||||
{
|
||||
QAction *action = qobject_cast<QAction *>(sender());
|
||||
if (action) {
|
||||
if (!action)
|
||||
return;
|
||||
const QString project = action->data().toString();
|
||||
QFileInfo inf(project);
|
||||
if (inf.exists()) {
|
||||
|
@ -1671,8 +1672,6 @@ void MainWindow::openRecentProject()
|
|||
if (rv == QMessageBox::Yes) {
|
||||
removeProjectMRU(project);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue