Permalink
Browse files

Merge pull request #1678 from tacaswell/qt4_closeevent

added QtGui.QMainWindow.closeEvent() to make sure the close event
  • Loading branch information...
1 parent f2712d5 commit 726e67ecdc91d57093c079f0ddce6c59872d1021 @dmcdougall dmcdougall committed with Jan 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/matplotlib/backends/backend_qt4.py
@@ -370,6 +370,7 @@ def idle_draw(*args):
class MainWindow(QtGui.QMainWindow):
def closeEvent(self, event):
self.emit(QtCore.SIGNAL('closing()'))
+ QtGui.QMainWindow.closeEvent(self, event)
class FigureManagerQT( FigureManagerBase ):
"""

0 comments on commit 726e67e

Please sign in to comment.