← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~notabilis27/widelands/bug-tab-crash into lp:widelands

 

Notabilis has proposed merging lp:~notabilis27/widelands/bug-tab-crash into lp:widelands.

Requested reviews:
  Widelands Developers (widelands-dev)
Related bugs:
  Bug #1600633 in widelands: "Crash when pressing tab key in help menu"
  https://bugs.launchpad.net/widelands/+bug/1600633

For more details, see:
https://code.launchpad.net/~notabilis27/widelands/bug-tab-crash/+merge/299630
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~notabilis27/widelands/bug-tab-crash into lp:widelands.
=== modified file 'src/ui_basic/panel.cc'
--- src/ui_basic/panel.cc	2016-03-10 15:00:32 +0000
+++ src/ui_basic/panel.cc	2016-07-10 19:55:00 +0000
@@ -550,6 +550,10 @@
 	if (down) {
 		if (focus_) {
 				Panel * p = focus_->next_;
+				if (focus_ == last_child_) {
+					p = first_child_;
+				}
+
 				switch (code.sym) {
 
 				case SDLK_TAB:


Follow ups