No need for this variable. Let's simplify to:
```
if (!editDlg.exec())
    return;
```