eric6/ViewManager/ViewManager.py

changeset 7762
e77f58e5f663
parent 7759
51aa6c6b66f7
child 7775
4a1db75550bd
--- a/eric6/ViewManager/ViewManager.py	Tue Oct 06 17:56:16 2020 +0200
+++ b/eric6/ViewManager/ViewManager.py	Tue Oct 06 18:16:00 2020 +0200
@@ -6081,19 +6081,13 @@
             if aw:
                 aw.zoomOut()
                 self.sbZoom.setValue(aw.getZoom())
-        
+    
     def __zoomReset(self):
         """
         Private method to reset the zoom factor.
         """
-        if QApplication.focusWidget() == e5App().getObject("Shell"):
-            e5App().getObject("Shell").zoomTo(0)
-        else:
-            aw = self.activeWindow()
-            if aw:
-                aw.zoomTo(0)
-                self.sbZoom.setValue(aw.getZoom())
-        
+        self.__zoomTo(0)
+    
     def __zoom(self):
         """
         Private method to handle the zoom action.

eric ide

mercurial