summaryrefslogtreecommitdiff
path: root/src/gui/npcintegerdialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 09:34:07 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 09:34:07 -0600
commit171198999b4290f3e2adadd019c8d914212ecf47 (patch)
treea5d29699b7639346901e34b32efa66a306f5bd13 /src/gui/npcintegerdialog.cpp
parent343d290f639646b9a3a90c9402dfc8e76989bdcb (diff)
downloadmana-171198999b4290f3e2adadd019c8d914212ecf47.tar.gz
mana-171198999b4290f3e2adadd019c8d914212ecf47.tar.bz2
mana-171198999b4290f3e2adadd019c8d914212ecf47.tar.xz
mana-171198999b4290f3e2adadd019c8d914212ecf47.zip
Make sure NPC input dialogs get focus
Diffstat (limited to 'src/gui/npcintegerdialog.cpp')
-rw-r--r--src/gui/npcintegerdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/npcintegerdialog.cpp b/src/gui/npcintegerdialog.cpp
index ea06ca8d..fad37700 100644
--- a/src/gui/npcintegerdialog.cpp
+++ b/src/gui/npcintegerdialog.cpp
@@ -139,7 +139,10 @@ void NpcIntegerDialog::requestFocus()
void NpcIntegerDialog::setVisible(bool visible)
{
- if (visible) npcTextDialog->setVisible(true);
+ if (visible) {
+ npcTextDialog->setVisible(true);
+ requestFocus();
+ }
Window::setVisible(visible);
}