Skip to content

Commit 401d7ce

Browse files
authored
Merge pull request matplotlib#26861 from pavelliavonau/navbarQtConfSubplotsModal
QT/NavidationToolbar2: configure subplots dialog should be modal.
2 parents f69cf6a + 5b0feba commit 401d7ce

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)