Squish: Fix handling of "Take a Tour" in startCreatorVerifyingClang

Change-Id: Ica4414c6e284af69aedf06b7d56b7e72587c7e90
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2019-02-12 18:01:38 +01:00
parent 0b6a36df7e
commit 4b8200086b

View File

@@ -23,11 +23,15 @@
# #
############################################################################ ############################################################################
firstStart = True
def startCreatorVerifyingClang(useClang): def startCreatorVerifyingClang(useClang):
global firstStart
try: try:
# start Qt Creator with / without enabled ClangCodeModel plugin (without modifying settings) # start Qt Creator with / without enabled ClangCodeModel plugin (without modifying settings)
loadOrNoLoad = '-load' if useClang else '-noload' loadOrNoLoad = '-load' if useClang else '-noload'
startQC([loadOrNoLoad, 'ClangCodeModel']) startQC([loadOrNoLoad, 'ClangCodeModel'], cancelTour=firstStart)
firstStart = False
except RuntimeError: except RuntimeError:
t, v = sys.exc_info()[:2] t, v = sys.exc_info()[:2]
strv = str(v) strv = str(v)