Robert-N7 / abmatt

ANoob's Brres Material Tool for Mario Kart Wii
GNU General Public License v3.0
14 stars 3 forks source link

gui: update current polygon via keyboard navigation too #80

Closed mardy closed 1 year ago

mardy commented 1 year ago

Use the currentIndex from the selection model to determine which item is currently active. This allows updating the current polygon both when an item in the treeview is clicked, and also when it's just selected via the keyboard. Remove the clicked_index member, which can be replaced with the QTreeView's currentItem().