baoboa / pyqt5

PyQt5 from riverbank
http://www.riverbankcomputing.com/software/pyqt/download5
GNU General Public License v3.0
1.05k stars 586 forks source link

prevent out-of-bounds error in editable tree model example #40

Closed rknuus closed 6 years ago

rknuus commented 6 years ago

While playing with and adjusting the editable tree model example for one of my projects I noticed an out-of-bounds error crashing the application. Even though I don't recall how exactly I reproduced it the suggested bugfix prevents 'out of range' exceptions by checking preconditions similar to other methods.

baoboa commented 6 years ago

thanks