diff --git a/GUI/ViewModel/ViewModel.py b/GUI/ViewModel/ViewModel.py index dbaf652..df19a9b 100644 --- a/GUI/ViewModel/ViewModel.py +++ b/GUI/ViewModel/ViewModel.py @@ -273,7 +273,6 @@ def AddBatch(self, batch : SubtitleBatch): self.beginInsertRows(scene_index, insert_row, insert_row) scene_item.AddBatchItem(batch_item) - scene_item.Remap() self.endInsertRows() scene_item.emitDataChanged() @@ -345,6 +344,7 @@ def RemoveBatch(self, scene_number, batch_number): logging.debug(f"Removed row {i} from scene {scene_item.number}, rowCount={scene_item.rowCount()}") break + scene_item.Remap() scene_item.UpdateStartAndEnd() #############################################################################