Skip to content

Commit 5b0feba

Browse files
committed
QT/NavidationToolbar2: configure subplots dialog should be modal.
Fix for a case when parent windows is modal. Configure subplots hides behind parent modal windows in case of non-modal usage. Other dialogs of NavigationToolbarQT are modal, so it looks like a bug. tested on pyQT6
1 parent 1bea95f commit 5b0feba

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
@@ -759,6 +759,7 @@ def configure_subplots(self):
759759
self.canvas.mpl_connect(
760760
"close_event", lambda e: self._subplot_dialog.reject())
761761
self._subplot_dialog.update_from_current_subplotpars()
762+
self._subplot_dialog.setModal(True)
762763
self._subplot_dialog.show()
763764
return self._subplot_dialog
764765

0 commit comments

Comments
 (0)