forked from qt-creator/qt-creator
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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user