Hot Door CORE Forum
ListView currentIndex bug in 0.8.0 for Windows - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: ListView currentIndex bug in 0.8.0 for Windows (/showthread.php?tid=305)



ListView currentIndex bug in 0.8.0 for Windows - Rick Johnson - 02-19-2022

This worked fine in CORE 0.7.8 and still fine in 0.8.0 for Mac, but under Windows currentIndex in a new blank list returns -1. Once a selection has been made, it seems currentIndex can no longerĀ go below 0. Setting it manually to -1 with setCurrentIndex returns false.

I've added a workaround that, when currentIndex returns 0, I count the entries to be sure there really is an entry 0 before trying to access it.