TableEditor: Qt: Fix exception in selected_indices

The `_get_selected_indices` method was incorrectly implemented
causing TypeError.