mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 10:33:24 -08:00
[DlgCreateGame] Revert dlg to use exec instead of open (#7795)
This commit is contained in:
parent
d7dac8395b
commit
eab217d1bf
2 changed files with 3 additions and 3 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue