From bf8afb4c38ae68ce903a8183b336476210b9a33e Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 9 Jun 2008 12:20:00 +0000 Subject: (svn r13434) -Fix (r13317): news window with invalid news item could be shown --- src/news_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 33713f45f..d35eeced2 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -528,7 +528,7 @@ static void DeleteNewsItem(NewsItem *ni) MoveToNextItem(); } - if ((_current_news == ni) && (FindWindowById(WC_MESSAGE_HISTORY, 0) != NULL)) { + if ((_current_news == ni) && (FindWindowById(WC_NEWS_WINDOW, 0) != NULL)) { /* about to remove the currently displayed item; also skip */ MoveToNextItem(); } -- cgit v1.2.3-70-g09d2