From 1978c7dc87cb39ff1a94f200cbba9034ca142f27 Mon Sep 17 00:00:00 2001 From: alberth Date: Mon, 20 Jul 2009 18:39:38 +0000 Subject: (svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used. --- src/window_gui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 846a5a2db..45ef5b8f7 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -274,7 +274,7 @@ public: } if (this->nested_array != NULL) { assert(widget_index < this->nested_array_size); - this->nested_array[widget_index]->SetDisabled(disab_stat); + if (this->nested_array[widget_index] != NULL) this->nested_array[widget_index]->SetDisabled(disab_stat); } } -- cgit v1.2.3-54-g00ecf