diff options
Diffstat (limited to 'tests/system/shared/project.py')
-rw-r--r-- | tests/system/shared/project.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py index 60e290c157..60f09d0679 100644 --- a/tests/system/shared/project.py +++ b/tests/system/shared/project.py @@ -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: |