mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 10:33:54 -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
|
#else
|
||||||
QInputDialog::getInt(
|
QInputDialog::getInt(
|
||||||
#endif
|
#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) {
|
if (ok) {
|
||||||
Command_RollDie cmd;
|
Command_RollDie cmd;
|
||||||
cmd.set_sides(sides);
|
cmd.set_sides(sides);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue