src/eric7/HexEdit/HexEditMainWindow.py

branch
pdf_viewer
changeset 9698
69e183e4db6f
parent 9697
cdaa3cc805f7
child 10428
a071d4065202
--- a/src/eric7/HexEdit/HexEditMainWindow.py	Thu Jan 12 18:08:12 2023 +0100
+++ b/src/eric7/HexEdit/HexEditMainWindow.py	Fri Jan 13 18:20:54 2023 +0100
@@ -41,7 +41,7 @@
     """
     Class implementing the hex editor main window.
 
-    @signal editorClosed() emitted after the window was requested to close down
+    @signal editorClosed() emitted after the window was requested to close
     """
 
     editorClosed = pyqtSignal()
@@ -108,7 +108,7 @@
         self.__initToolbars()
         self.__createStatusBar()
 
-        self.__class__.windows.append(self)
+        HexEditMainWindow.windows.append(self)
 
         state = Preferences.getHexEditor("HexEditorState")
         self.restoreState(state)
@@ -1028,8 +1028,8 @@
             Preferences.setGeometry("HexEditorGeometry", self.saveGeometry())
 
             with contextlib.suppress(ValueError):
-                if self.__fromEric or len(self.__class__.windows) > 1:
-                    del self.__class__.windows[self.__class__.windows.index(self)]
+                if self.__fromEric or len(HexEditMainWindow.windows) > 1:
+                    HexEditMainWindow.windows.remove(self)
 
             if not self.__fromEric:
                 Preferences.syncPreferences()
@@ -1323,7 +1323,7 @@
         """
         Private slot to close all other windows.
         """
-        for win in self.__class__.windows[:]:
+        for win in HexEditMainWindow.windows[:]:
             if win != self:
                 win.close()
 

eric ide

mercurial