[ui] update core graph and clear undoStack after loading a mg file

This commit is contained in:
Yann Lanthony 2017-10-13 12:22:29 +02:00
parent d34d6f27ec
commit 0a69e9f344

View file

@ -34,6 +34,8 @@ class Reconstruction(QObject):
@Slot(str)
def load(self, filepath):
self._graph.load(filepath)
self._graph.update()
self._undoStack.clear()
undoStack = Property(QObject, lambda self: self._undoStack, constant=True)
graph = Property(graph.Graph, lambda self: self._graph, constant=True)