Traceback when Ctrl+click clips
Steps to reproduce:
- Create a new project
- Import a video file
- Add it twice to the timeline to create two clips
- Ctrl+click clip1
- Ctrl+click clip2
- Ctrl+click clip1, notice the traceback:
Traceback (most recent call last):
File "/app/lib/python3.7/site-packages/matplotlib-3.0.3-py3.7-linux-x86_64.egg/matplotlib/cbook/__init__.py", line 215, in process
func(*args, **kwargs)
File "/home/aleb/dev/pitivi/pitivi/pitivi/timeline/elements.py", line 372, in _mpl_button_release_event_cb
event.xdata = Zoomable.pixel_to_ns(x) - ges_clip.props.start + ges_clip.props.in_point
AttributeError: 'NoneType' object has no attribute 'props'
A unittest should be added. Ctrl+click can be simulated using the toggle_clip_selection
method.
Edited by Alexandru Băluț