summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index ada563b8d..4b7a86fe6 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -44,6 +44,7 @@
#include "gui/widgets/button.h"
#include "gui/widgets/chattab.h"
#include "gui/widgets/progressbar.h"
+#include "gui/widgets/textfield.h"
#include "net/net.h"
@@ -815,6 +816,11 @@ void Viewport::showMapPopup(const int x, const int y)
mPopupMenu->showMapPopup(getMouseX(), getMouseY(), x, y);
}
+void Viewport::showTextFieldPopup(TextField *input)
+{
+ mPopupMenu->showTextFieldPopup(getMouseX(), getMouseY(), input);
+}
+
void Viewport::closePopupMenu()
{
if (mPopupMenu)