eric6/Preferences/ToolConfigurationDialog.py

changeset 8222
5994b80b8760
parent 8220
006ee31b4835
--- a/eric6/Preferences/ToolConfigurationDialog.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/Preferences/ToolConfigurationDialog.py	Sun Apr 11 18:45:10 2021 +0200
@@ -266,14 +266,13 @@
         @param path path of the executable
         @type str
         """
-        if path:
-            if not Utilities.isinpath(path):
-                E5MessageBox.critical(
-                    self,
-                    self.tr("Select executable"),
-                    self.tr(
-                        "The selected file is not an executable."
-                        " Please choose an executable filename."))
+        if path and not Utilities.isinpath(path):
+            E5MessageBox.critical(
+                self,
+                self.tr("Select executable"),
+                self.tr(
+                    "The selected file is not an executable."
+                    " Please choose an executable filename."))
     
     def on_toolsList_currentRowChanged(self, row):
         """

eric ide

mercurial