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 <>
parent e93f8edc
......@@ -612,8 +612,9 @@ def addCPlusPlusFileToCurrentProject(name, template, forceOverwrite=False):
"visible='1' window=%s}" % window)
replaceEditorContent(lineEdit, name)
fileExistedBefore = os.path.exists(os.path.join(basePath, name))
if (os.path.exists(os.path.join(basePath, name))):
if (fileExistedBefore):
overwriteDialog = "{type='Core::Internal::PromptOverwriteDialog' unnamed='1' visible='1'}"
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