Connected die roll dlg to parent

Die roll now has a logo as it is correctly connected to the parent.
This commit is contained in:
Matt Lowe 2015-05-08 20:36:31 +02:00
parent 9a81b15168
commit 80e53b334e

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