Properly remove select box when export dialog is closed

Previously, only clicking the "Close" button would remove it,
but it would stay behind when directly closing the window.
This commit is contained in:
David Nadlinger 2015-05-16 20:41:54 +02:00
parent 9df4df55c4
commit 274d0793b3
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ pyqtgraph-0.9.11 [unreleased]
- DockArea:
- Fixed adding Docks to DockArea after all Docks have been removed
- Fixed DockArea save/restoreState when area is empty
- Properly remove select box when export dialog is closed using window decorations
New Features:
- Preliminary PyQt5 support

View File

@ -139,5 +139,6 @@ class ExportDialog(QtGui.QWidget):
self.selectBox.setVisible(False)
self.setVisible(False)
def closeEvent(self, event):
self.close()
QtGui.QWidget.closeEvent(self, event)