Skip to content

Commit 26fbd92

Browse files
committed
Remove unnecessary Qt signal connection.
This fails with PyQt5.11, but is also unnecessary. `_destroying` is set to True before this signal is connected, so the callback simply returns immediately. Thus, just remove the connection entirely.
1 parent 260e6d6 commit 26fbd92

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,6 @@ def destroy(self, *args):
671671
if self.window._destroying:
672672
return
673673
self.window._destroying = True
674-
self.window.destroyed.connect(self._widgetclosed)
675674
if self.toolbar:
676675
self.toolbar.destroy()
677676
self.window.close()

0 commit comments

Comments
 (0)