From 561b25d0319674716b51d63594e146132d0a33e3 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 19 Dec 2011 20:50:21 +0000 Subject: (svn r23601) -Fix: fix the conflict in window number --- src/signs_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/signs_gui.cpp') diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index cd71227b2..589af1cae 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -479,7 +479,7 @@ struct SignWindow : QueryStringBaseWindow, SignList { this->caption = STR_EDIT_SIGN_CAPTION; this->afilter = CS_ALPHANUMERAL; - this->InitNested(desc); + this->InitNested(desc, WN_QUERY_STRING_SIGN); this->LowerWidget(WID_QES_TEXT); UpdateSignEditWindow(si); @@ -656,7 +656,7 @@ void HandleClickOnSign(const Sign *si) void ShowRenameSignWindow(const Sign *si) { /* Delete all other edit windows */ - DeleteWindowById(WC_QUERY_STRING, 0); + DeleteWindowByClass(WC_QUERY_STRING); new SignWindow(&_query_sign_edit_desc, si); } @@ -667,7 +667,7 @@ void ShowRenameSignWindow(const Sign *si) */ void DeleteRenameSignWindow(SignID sign) { - SignWindow *w = dynamic_cast(FindWindowById(WC_QUERY_STRING, 0)); + SignWindow *w = dynamic_cast(FindWindowById(WC_QUERY_STRING, WN_QUERY_STRING_SIGN)); if (w != NULL && w->cur_sign == sign) delete w; } -- cgit v1.2.3-70-g09d2