table: Don't clear the selection when setting current index
setCurrentIndex with ItemSelectionModel.ClearAndSelect will clear the current index, then select and make the new index current. This breaks the logic for multi selection that is later in this function. So make sure to only update current index and leave actual selection to the rest of the function.