(svn r13434) -Fix (r13317): news window with invalid news item could be shown
authorsmatz
Mon, 09 Jun 2008 12:20:00 +0000
changeset 10883 aaff13884f98
parent 10882 f047317b321c
child 10886 5fff9f00e677
(svn r13434) -Fix (r13317): news window with invalid news item could be shown
src/news_gui.cpp
--- a/src/news_gui.cpp	Mon Jun 09 12:17:01 2008 +0000
+++ b/src/news_gui.cpp	Mon Jun 09 12:20:00 2008 +0000
@@ -528,7 +528,7 @@
 		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();
 	}