summaryrefslogtreecommitdiff
path: root/Graphics.py
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics.py')
-rw-r--r--Graphics.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/Graphics.py b/Graphics.py
index 16a4189..4779a12 100644
--- a/Graphics.py
+++ b/Graphics.py
@@ -396,19 +396,19 @@ class NodeSocket(QtWidgets.QGraphicsItem):
del self.new_line
super(NodeSocket, self).mouseReleaseEvent(event)
- try:
- data = get_last_list('Undo')
- comp_selected = data[-1]
- data.remove(comp_selected)
- for i in range(len(data)):
- if data[i].name == self.new_line.source.parent.obj.name:
- data[i] = self.new_line.source.parent.obj
- elif data[i].name == self.new_line.target.parent.obj.name:
- data[i] = self.new_line.target.parent.obj
- data.append(comp_selected)
- push('Undo', data)
- except Exception as e:
- print(e)
+ # try:
+ # data = get_last_list('Undo')
+ # comp_selected = data[-1]
+ # data.remove(comp_selected)
+ # for i in range(len(data)):
+ # if data[i].name == self.new_line.source.parent.obj.name:
+ # data[i] = self.new_line.source.parent.obj
+ # elif data[i].name == self.new_line.target.parent.obj.name:
+ # data[i] = self.new_line.target.parent.obj
+ # data.append(comp_selected)
+ # push('Undo', data)
+ # except Exception as e:
+ # print(e)
def get_center(self):
rect = self.boundingRect()