mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[ui] UIGraph: stop previous graph execution before setting the new one
This commit is contained in:
parent
13c22dc884
commit
aa0f08354b
1 changed files with 2 additions and 1 deletions
|
@ -98,6 +98,7 @@ class UIGraph(QObject):
|
||||||
def setGraph(self, g):
|
def setGraph(self, g):
|
||||||
""" Set the internal graph. """
|
""" Set the internal graph. """
|
||||||
if self._graph:
|
if self._graph:
|
||||||
|
self.stopExecution()
|
||||||
self.clear()
|
self.clear()
|
||||||
self._graph = g
|
self._graph = g
|
||||||
self._graph.updated.connect(self.onGraphUpdated)
|
self._graph.updated.connect(self.onGraphUpdated)
|
||||||
|
@ -214,7 +215,7 @@ class UIGraph(QObject):
|
||||||
return self._undoStack.tryAndPush(command)
|
return self._undoStack.tryAndPush(command)
|
||||||
|
|
||||||
def groupedGraphModification(self, title):
|
def groupedGraphModification(self, title):
|
||||||
""" Get a GroupedGraphModification for this Reconstruction.
|
""" Get a GroupedGraphModification for this Graph.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
title (str): the title of the macro command
|
title (str): the title of the macro command
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue