Traceback when loading project with a transition between clips in a group
Steps to reproduce:
- Create a new project
- Add two color clips to the timeline
- Overlap them
- Select both
- Ctrl+G to group them
- Save
- Reopen Pitivi and load the project, notice traceback:
AttributeError: 'gi._gi.GProps' object has no attribute 'layer'
File "/home/aleb/dev/pitivi/pitivi/pitivi/application.py", line 283, in _new_project_loaded_cb
self.project_observer = ProjectObserver(project, self.action_log)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/project.py", line 137, in __init__
action_log)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 876, in __init__
self._connect_to_layer(ges_layer)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 894, in _connect_to_layer
layer_observer = LayerObserver(ges_layer, self.action_log)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 674, in __init__
self._connect_to_clip(ges_clip)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 681, in _connect_to_clip
self._connect_to_track_element(track_element)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 716, in _connect_to_track_element
ges_layer = ges_clip.props.layer
AttributeError: 'gi._gi.GProps' object has no attribute 'layer'
Seems to happen because the track_element
is a GES.VideoTransition
and ges_clip = track_element.get_toplevel_parent()
is a GES.Group
which does not have the layer
property. The current logic assumes it's a GES.Clip
.