Commit ccef3793 authored by Valentin Valls's avatar Valentin Valls

Add transaction when removing many items

parent cc29a6a5
......@@ -155,6 +155,7 @@ class Plot(qt.QObject):
def removeItem(self, item: Item):
items = self.__itemTree(item)
with self.transaction():
for i in items:
item._setPlot(None)
self.__items.remove(i)
......
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