diff options
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 1089a2f87..1cb5e8621 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -446,6 +446,8 @@ struct SignWindow : QueryStringBaseWindow, SignList { SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS) { this->caption = STR_EDIT_SIGN_CAPTION; + this->cancel_button = WID_QES_CANCEL; + this->ok_button = WID_QES_OK; this->afilter = CS_ALPHANUMERAL; this->InitNested(desc, WN_QUERY_STRING_SIGN); @@ -562,11 +564,6 @@ struct SignWindow : QueryStringBaseWindow, SignList { } return state; } - - virtual void OnOpenOSKWindow(int wid) - { - ShowOnScreenKeyboard(this, wid, WID_QES_CANCEL, WID_QES_OK); - } }; static const NWidgetPart _nested_query_sign_edit_widgets[] = { |