def closeEvent(self, event):
        if not self.undoStack.isClean():
            if self.yesNoDialog("Current workflow is not saved.  Save it before quitting?"):
                if self.workingFilename:
                    self.save(self.workingFilename)
                else:
                    self.saveAs()
        self.saveSettings()
        QtGui.QMainWindow.closeEvent(self, event)


    ###########################################################################
    ## Internal functionality
    ###########################################################################
Discard all expired cookies.
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_main_window.py/MainWindow.closeEvent--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/cookielib.py/CookieJar.clear_expired_cookies