GUIFormSpecMenu::OnEvent code style update and small refactor
authorest31 <MTest31@outlook.com>
Tue, 16 Jun 2015 18:33:07 +0000 (20:33 +0200)
committerest31 <MTest31@outlook.com>
Tue, 16 Jun 2015 18:33:07 +0000 (20:33 +0200)
commit7a90b31b30897c99adcbef0a6ea0c69f1c99c2b1
tree1894b7a5a4f31bee0d4a70c09182349bf0e99175
parent7b7f8b72257fa83e43dc95117dd7e7c6d2e218d9
GUIFormSpecMenu::OnEvent code style update and small refactor

* Make method (more) consistent with current code stlye
* Move index into loop constructor after @rubenwardy's suggestion
* Cache inv_s->getList(s.listname), which removes a possibly bad scenario
of inv_s being null.
* Properly check for validity
src/guiFormSpecMenu.cpp