diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-10 09:34:07 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-10 09:34:07 -0600 |
commit | 171198999b4290f3e2adadd019c8d914212ecf47 (patch) | |
tree | a5d29699b7639346901e34b32efa66a306f5bd13 /src/gui/npcintegerdialog.cpp | |
parent | 343d290f639646b9a3a90c9402dfc8e76989bdcb (diff) | |
download | mana-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.cpp | 5 |
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); } |