Skip to content

Commit 999f1b2

Browse files
committed
Merge pull request matplotlib#1678 from tacaswell/qt4_closeevent
added QtGui.QMainWindow.closeEvent() to make sure the close event
2 parents c11b834 + 0729489 commit 999f1b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_qt4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ def idle_draw(*args):
370370
class MainWindow(QtGui.QMainWindow):
371371
def closeEvent(self, event):
372372
self.emit(QtCore.SIGNAL('closing()'))
373+
QtGui.QMainWindow.closeEvent(self, event)
373374

374375
class FigureManagerQT( FigureManagerBase ):
375376
"""

0 commit comments

Comments
 (0)