--- a/src/eric7/DataViews/PyProfileDialog.py Thu May 25 19:52:31 2023 +0200 +++ b/src/eric7/DataViews/PyProfileDialog.py Fri May 26 10:15:51 2023 +0200 @@ -304,6 +304,16 @@ self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) + def closeEvent(self, evt): + """ + Public method to handle the close event. + + @param evt reference to the close event + @type QCloseEvent + """ + self.cancelled = True + # The rest is done by the __populateLists() method. + def on_buttonBox_clicked(self, button): """ Private slot called by a button of the button box clicked.