Merge pull request #1065 from poixen/die_roll_parent

Connected die roll dlg to parent
This commit is contained in:
Zach 2015-05-08 16:14:47 -04:00
commit 07fcde038c

View file

@ -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);