Commit b044f25c authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Prevent possible timing issue



Change-Id: Ia13ae58792c73453b89b8288c5807448f7438c37
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent e93f8edc
......@@ -612,8 +612,9 @@ def addCPlusPlusFileToCurrentProject(name, template, forceOverwrite=False):
"visible='1' window=%s}" % window)
replaceEditorContent(lineEdit, name)
clickButton(waitForObject(":Next_QPushButton"))
fileExistedBefore = os.path.exists(os.path.join(basePath, name))
__createProjectHandleLastPage__()
if (os.path.exists(os.path.join(basePath, name))):
if (fileExistedBefore):
overwriteDialog = "{type='Core::Internal::PromptOverwriteDialog' unnamed='1' visible='1'}"
waitForObject(overwriteDialog)
if forceOverwrite:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment