Fix Crash on JoyStick Config when js device did not contain regular joystick button
Review Request #130245 - Created Sept. 16, 2017 and discarded
This patch will fix the joystick config when detect "btnx keyboard" as joystick, It will crash.
Due to Btnx keyboard is not a regular joystick.
Just add one more if to fix this crash.
Are you sure this fixes anything?
Just before the lines you changed we have
if ( ! buttonTbl->item(number, 0) )
buttonTbl->setItem(number, 0, new QTableWidgetItem());
Which will create the item, no?
Or is it because number is a negative value somehow?