diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 01:22:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 01:22:29 +0000 |
commit | 861e9cefb3c31f1cab46ddb068af7a3648f45b4a (patch) | |
tree | 2efbc4cf44063706f8bd6b787f55a92c57290fbb /src/signs_gui.cpp | |
parent | 9907742a0f73bdbbf578cd2b6c424b80d254fed1 (diff) | |
download | openttd-861e9cefb3c31f1cab46ddb068af7a3648f45b4a.tar.xz |
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |