Commit 07fcde03 authored by Zach's avatar Zach
Browse files

Merge pull request #1065 from poixen/die_roll_parent

Connected die roll dlg to parent
parents 474d9522 80e53b33
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment