Skip to content

Commit

Permalink
Remap when splitting/merging scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
machinewrapped committed Jun 9, 2024
1 parent 7d1fb51 commit 90dbb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GUI/ViewModel/ViewModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()

#############################################################################
Expand Down

0 comments on commit 90dbb67

Please sign in to comment.