timeline: handle users deleting tentative subtitle track
Fixes potential crash if users try to do this
This commit is contained in:
@@ -145,6 +145,7 @@ void TrackViewItem::ShowContextMenu(const QPoint &p)
|
||||
|
||||
void TrackViewItem::DeleteTrack()
|
||||
{
|
||||
emit AboutToDeleteTrack(track_);
|
||||
Core::instance()->undo_stack()->push(new TimelineRemoveTrackCommand(track_));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user