Fix segmentation fault on QuickCommands::indexSelect
requested to merge klauswk/konsole:bugfix/klauswk/segmentation-fault-on-quickcommandswidget into master
There is a bug in the QuickCommands causing segmentation fault when deference a null pointer.
To reproduce the bug, do the following:
- Add a new Quick Command to any new group
- Remove the command you just add
- Click on the empty group
- It will crash because it tries to get the
item->parent()
and there is none