From 274d0793b384c579a07104c0591499e1cce41b72 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 16 May 2015 20:41:54 +0200 Subject: [PATCH] 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. --- CHANGELOG | 1 + pyqtgraph/GraphicsScene/exportDialog.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 467f19c1..1a770e9a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/pyqtgraph/GraphicsScene/exportDialog.py b/pyqtgraph/GraphicsScene/exportDialog.py index eebf5999..2676a3b4 100644 --- a/pyqtgraph/GraphicsScene/exportDialog.py +++ b/pyqtgraph/GraphicsScene/exportDialog.py @@ -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)