mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Merge pull request #1065 from poixen/die_roll_parent
Connected die roll dlg to parent
This commit is contained in:
commit
07fcde038c
1 changed files with 1 additions and 1 deletions
|
|
@ -1003,7 +1003,7 @@ void Player::actRollDie()
|
|||
#else
|
||||
QInputDialog::getInt(
|
||||
#endif
|
||||
0, tr("Roll die"), tr("Number of sides:"), 20, 2, 1000, 1, &ok);
|
||||
static_cast<QWidget *>(parent()), tr("Roll die"), tr("Number of sides:"), 20, 2, 1000, 1, &ok);
|
||||
if (ok) {
|
||||
Command_RollDie cmd;
|
||||
cmd.set_sides(sides);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue