GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit a9058c74 authored by Harish Fulara's avatar Harish Fulara Committed by Alexandru Băluț

clipproperties: Disconnect from the project when it's closed

When we open a new project via app menu, the current project gets closed
but its reference in TransformationProperties class is not set to None.

Closes #2171
parent 9deda4bf
Pipeline #5667 failed with stage
in 44 minutes and 18 seconds
......@@ -550,6 +550,8 @@ class TransformationProperties(Gtk.Expander, Loggable):
self.app.project_manager.connect_after(
"new-project-loaded", self._newProjectLoadedCb)
self.app.project_manager.connect_after(
"project-closed", self.__project_closed_cb)
def _newProjectLoadedCb(self, unused_app, project):
if self._selection is not None:
......@@ -564,6 +566,9 @@ class TransformationProperties(Gtk.Expander, Loggable):
self._selection.connect('selection-changed', self._selectionChangedCb)
self._project.pipeline.connect("position", self._position_cb)
def __project_closed_cb(self, unused_project_manager, unused_project):
self._project = None
def _initButtons(self):
clear_button = self.builder.get_object("clear_button")
clear_button.connect("clicked", self._defaultValuesCb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment