[DlgCreateGame] Revert dlg to use exec instead of open (#7795)

This commit is contained in:
RickyRister 2026-11-07 05:44:40 -07:00 • committed by GitHub
parent d7dac8395b
commit eab217d1bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -272,7 +272,7 @@ void GameSelector::actCreate()
auto *dlg = new DlgCreateGame(room, room->getGameTypes(), this);
dlg->setAttribute(Qt::WA_DeleteOnClose);
connect(dlg, &QDialog::finished, this, &GameSelector::updateTitle);
dlg->open();
dlg->exec();
}
void GameSelector::checkResponse(const Response &response)
@ -368,7 +368,7 @@ void GameSelector::customContextMenu(const QPoint &point)
auto *dlg = new DlgCreateGame(gameInfo, gameTypes, this);
dlg->setAttribute(Qt::WA_DeleteOnClose);
dlg->open();
dlg->exec();
});
QAction copyLink(tr("Cop&y game link"));

View file

@ -576,7 +576,7 @@ void TabGame::actGameInfo()
// Heap-allocated so that destroying this tab while the dialog is open cannot delete a stack object.
auto *dlg = new DlgCreateGame(game->getGameMetaInfo()->proto(), game->getGameMetaInfo()->getRoomGameTypes(), this);
dlg->setAttribute(Qt::WA_DeleteOnClose);
dlg->open();
dlg->exec();
}
void TabGame::actCopyGameLink()