summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index d267e5ad..3107c529 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -247,3 +247,10 @@ void BuyDialog::logic()
if (!current_npc) setVisible(false);
}
+
+void BuyDialog::setVisible(bool visible)
+{
+ Window::setVisible(visible);
+
+ if (visible) requestFocus();
+}