Render button is disabled after loading a project where the assets have been moved
@aleb
Submitted by Alex Băluț Assigned to Alex Băluț @aleb
Description
Steps to reproduce:
-
Create a project with one clip on the timeline, save it.
-
Move the file backing the clip to a different location.
-
bin/pitivi 1.xges, specify the new path of the file, notice the project is loaded but the render button is disabled. It should be enabled.
-
Close the app, notice tracebacks in the console:
Traceback (most recent call last):
File "/home/aleb/dev/pitivi/pitivi/pitivi/application.py", line 276, in _projectClosed
self.timeline_log_observer.stopObserving(project.timeline)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 532, in stopObserving
self._disconnectFromTimeline(timeline)
File "/home/aleb/dev/pitivi/pitivi/pitivi/undo/timeline.py", line 549, in _disconnectFromTimeline
layer.disconnect_by_func(self._clipAddedCb)
TypeError: nothing connected to <bound method TimelineLogObserver._clipAddedCb of <pitivi.undo.timeline.TimelineLogObserver object at 0x7efc1daca160>>
Traceback (most recent call last):
File "/home/aleb/dev/pitivi/pitivi/pitivi/mainwindow.py", line 864, in _projectManagerProjectClosedCb
self._disconnectFromProject(project)
File "/home/aleb/dev/pitivi/pitivi/pitivi/mainwindow.py", line 1068, in _disconnectFromProject
project.disconnect_by_func(self._projectChangedCb)
TypeError: nothing connected to <bound method PitiviMainWindow._projectChangedCb of <PitiviMainWindow object at 0x7efc1da915a0 (pitivi+mainwindow+PitiviMainWindow at 0x20c2270)>>