Skip to content

Commit

Permalink
added QtGui.QMainWindow.closeEvent() to make sure the close event
Browse files Browse the repository at this point in the history
cascades up properly.

issue matplotlib#1676
  • Loading branch information
Thomas A Caswell authored and tacaswell committed Jan 17, 2013
1 parent 0ac3e46 commit ee4feb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/matplotlib/backends/backend_qt4.py
Expand Up @@ -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 ):
"""
Expand Down

0 comments on commit ee4feb3

Please sign in to comment.