```
if (res != QMessageBox::Ok)
    return;
```