diff --git a/src/urh/controller/CompareFrameController.py b/src/urh/controller/CompareFrameController.py index 56aa4364e9..93769a416d 100644 --- a/src/urh/controller/CompareFrameController.py +++ b/src/urh/controller/CompareFrameController.py @@ -1386,7 +1386,7 @@ def on_table_selection_timer_timeout(self): @pyqtSlot(int) def on_ref_index_changed(self, new_ref_index: int): - if new_ref_index != -1: + if new_ref_index != -1 and self.protocol_model.row_count: hide_correction = 0 for i in range(0, self.protocol_model.row_count): if self.ui.tblViewProtocol.isRowHidden((new_ref_index + i) % self.protocol_model.row_count):