return (dlg.exec() == QDialog::Accepted); on 1 line?