From 861e9cefb3c31f1cab46ddb068af7a3648f45b4a Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Feb 2009 01:22:29 +0000 Subject: (svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu). --- src/signs_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/signs_gui.cpp') diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index e77e103c5..ba2684e58 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -196,6 +196,7 @@ struct SignWindow : QueryStringBaseWindow, SignList { this->LowerWidget(QUERY_EDIT_SIGN_WIDGET_TEXT); UpdateSignEditWindow(si); + this->SetFocusedWidget(QUERY_EDIT_SIGN_WIDGET_TEXT); this->FindWindowPlacementAndResize(desc); } @@ -216,6 +217,7 @@ struct SignWindow : QueryStringBaseWindow, SignList { InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, MAX_LENGTH_SIGN_NAME_PIXELS); this->InvalidateWidget(QUERY_EDIT_SIGN_WIDGET_TEXT); + this->SetFocusedWidget(QUERY_EDIT_SIGN_WIDGET_TEXT); } /** @@ -347,9 +349,8 @@ void HandleClickOnSign(const Sign *si) void ShowRenameSignWindow(const Sign *si) { - /* Delete all other edit windows and the save window */ + /* Delete all other edit windows */ DeleteWindowById(WC_QUERY_STRING, 0); - DeleteWindowById(WC_SAVELOAD, 0); new SignWindow(&_query_sign_edit_desc, si); } -- cgit v1.2.3-54-g00ecf