Squish: Update detection of configured kits

Change-Id: Icade1feffde4a1b252175d8012c411a0a423748f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2020-02-11 12:03:19 +01:00
parent aba3777568
commit debc304bf8

View File

@@ -47,8 +47,8 @@ def switchViewTo(view):
"window=':Qt Creator_Core::Internal::MainWindow'}"), 20, 20 + 52 * view, 0, Qt.LeftButton)
def __kitIsActivated__(kit):
return not (str(kit.toolTip).startswith("<h3>Click to activate:</h3>")
or str(kit.toolTip).startswith("<h3>Kit is unsuited for project</h3>"))
return not ("<h3>Click to activate</h3>" in str(kit.toolTip)
or "<h3>Kit is unsuited for project</h3>" in str(kit.toolTip))
# returns a list of the IDs (see class Targets) of all kits
# which are currently configured for the active project