Skip to content

Commit dfe4e9f

Browse files
committed
port redraw fix.
1 parent b8a18bf commit dfe4e9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NodeGraphQt/qgraphics/port.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ def connect_to(self, port):
261261
if self.scene():
262262
viewer = self.scene().viewer()
263263
viewer.establish_connection(self, port)
264+
# redraw the ports.
265+
port.update()
266+
self.update()
264267

265268
def disconnect_from(self, port):
266269
port_types = {IN_PORT: 'output_port', OUT_PORT: 'input_port'}
@@ -269,6 +272,9 @@ def disconnect_from(self, port):
269272
if connected_port == port:
270273
pipe.delete()
271274
break
275+
# redraw the ports.
276+
port.update()
277+
self.update()
272278

273279

274280
class CustomPortItem(PortItem):

0 commit comments

Comments
 (0)