eric6/ViewManager/ViewManager.py

changeset 8227
349308e84eeb
parent 8220
006ee31b4835
child 8235
78e6d29eb773
--- a/eric6/ViewManager/ViewManager.py	Mon Apr 12 18:25:52 2021 +0200
+++ b/eric6/ViewManager/ViewManager.py	Mon Apr 12 19:05:23 2021 +0200
@@ -6997,7 +6997,6 @@
                 txt = aw.selectedText()
         else:
             aw = self.activeWindow()
-            if aw is not None:
-                if aw.hasSelectedText():
-                    txt = aw.selectedText()
+            if aw is not None and aw.hasSelectedText():
+                txt = aw.selectedText()
         return txt

eric ide

mercurial