Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d664879 commit bb99462Copy full SHA for bb99462
1 file changed
lib/matplotlib/backends/backend_qt4.py
@@ -361,6 +361,8 @@ def show(self):
361
self.window.show()
362
363
def destroy( self, *args ):
364
+ # check for qApp first, as PySide deletes it in its atexit handler
365
+ if QtGui.QApplication.instance() is None: return
366
if self.window._destroying: return
367
self.window._destroying = True
368
QtCore.QObject.disconnect( self.window, QtCore.SIGNAL( 'destroyed()' ),
0 commit comments