[DlgCreateGame] Revert dlg to use exec instead of open

This commit is contained in:
RickyRister 2026-11-07 05:25:06 -07:00
parent 9fdbe45ffb
commit 3a8cf3d18f
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()