From 80e53b334edcc526acc0eb4c7eee56aaa7860b15 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Fri, 8 May 2015 20:36:31 +0200 Subject: [PATCH] Connected die roll dlg to parent Die roll now has a logo as it is correctly connected to the parent. --- cockatrice/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/player.cpp b/cockatrice/src/player.cpp index 0a851de5..4d436418 100644 --- a/cockatrice/src/player.cpp +++ b/cockatrice/src/player.cpp @@ -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(parent()), tr("Roll die"), tr("Number of sides:"), 20, 2, 1000, 1, &ok); if (ok) { Command_RollDie cmd; cmd.set_sides(sides);