src/eric7/DataViews/CodeMetricsDialog.py

branch
eric7
changeset 10071
a74e32fa4d23
parent 9653
e67609152c5e
child 10076
649f7ca537ea
diff -r 9f5758c0fec1 -r a74e32fa4d23 src/eric7/DataViews/CodeMetricsDialog.py
--- a/src/eric7/DataViews/CodeMetricsDialog.py	Thu May 25 19:52:31 2023 +0200
+++ b/src/eric7/DataViews/CodeMetricsDialog.py	Fri May 26 10:15:51 2023 +0200
@@ -250,6 +250,16 @@
             QHeaderView.ResizeMode.Interactive
         )
 
+    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 start() method.
+
     def on_buttonBox_clicked(self, button):
         """
         Private slot called by a button of the button box clicked.

eric ide

mercurial