summaryrefslogtreecommitdiff
path: root/src/gui/npcstringdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcstringdialog.cpp')
-rw-r--r--src/gui/npcstringdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/npcstringdialog.cpp b/src/gui/npcstringdialog.cpp
index 525a73a0..7c9f78af 100644
--- a/src/gui/npcstringdialog.cpp
+++ b/src/gui/npcstringdialog.cpp
@@ -101,7 +101,10 @@ void NpcStringDialog::requestFocus()
void NpcStringDialog::setVisible(bool visible)
{
- if (visible) npcTextDialog->setVisible(true);
+ if (visible) {
+ npcTextDialog->setVisible(true);
+ requestFocus();
+ }
Window::setVisible(visible);
}