(svn r17752) -Fix [FS#3231]: OSK could reset town name to an already used town name for the 'Generate Town' window

This commit is contained in:
rubidium
2009-10-10 12:47:04 +00:00
parent 66721ffd36
commit 4ab569544b
3 changed files with 20 additions and 0 deletions

View File

@@ -978,6 +978,7 @@ public:
GetTownName(this->edit_str_buf, &this->params, this->townnameparts, &this->edit_str_buf[this->edit_str_size - 1]);
}
UpdateTextBufferSize(&this->text);
UpdateOSKOriginalText(this, TSEW_TOWNNAME_EDITBOX);
this->SetFocusedWidget(TSEW_TOWNNAME_EDITBOX);
this->SetWidgetDirty(TSEW_TOWNNAME_EDITBOX);