mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-08 11:24:46 -08:00
Merge pull request #1065 from poixen/die_roll_parent
Connected die roll dlg to parent
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user