Skip to content

Commit 6cc36ef

Browse files
authored
Merge pull request #27313 from tacaswell/mnt/qt_undestroy
FIX: allow re-shown Qt windows to be re-destroyed
2 parents 3d56dc4 + d916aae commit 6cc36ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_qt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ def start_main_loop(cls):
602602
qt_compat._exec(qapp)
603603

604604
def show(self):
605+
self.window._destroying = False
605606
self.window.show()
606607
if mpl.rcParams['figure.raise_window']:
607608
self.window.activateWindow()

0 commit comments

Comments
 (0)