changeset 13808:b85d8303af38 draft

(svn r18334) -Codechange: No need to test a pointer after using it.
author alberth <alberth@openttd.org>
date Sun, 29 Nov 2009 09:18:49 +0000
parents a743e8287d61
children 38e428ef6320
files src/window.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -257,8 +257,7 @@
 	 * So unless the clicked widget is the caption bar, change focus to this widget */
 	if (widget_type != WWT_CAPTION) {
 		/* Close the OSK window if a edit box loses focus */
-		if ((w->nested_root != NULL && w->nested_focus != NULL &&  w->nested_focus->type == WWT_EDITBOX &&
-					w->nested_focus != nw && w->window_class != WC_OSK)) {
+		if (w->nested_focus != NULL &&  w->nested_focus->type == WWT_EDITBOX && w->nested_focus != nw && w->window_class != WC_OSK) {
 			DeleteWindowById(WC_OSK, 0);
 		}