Squish: Fix tst_rename_file

Change-Id: I8d7f983959c1d7735a95ffde3452e8c7edf75ae1
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
Christian Stenger
2013-12-06 13:02:06 +01:00
parent 48fd9d60b6
commit 31e2d42dcf

View File

@@ -61,6 +61,13 @@ def main():
tempFiletype = filetype
if filetype == "QML" and filenames[i - 1][-4:] != ".qml":
tempFiletype = "Other files"
# following is necessary due to QTCREATORBUG-10179
# will be fixed when Qt5's MIME type database can be used
if ((filenames[-1] in ("main.cpp", "utility.cpp") and filenames[i - 1][-4:] != ".cpp")
or (filenames[-1] == "utility.h" and filenames[i - 1][-2:].lower() != ".h")
or (filetype == "Resources" and filenames[i - 1][-4:] != ".qrc")):
tempFiletype = "Other files"
# end of handling QTCREATORBUG-10179
renameFile(templateDir, usedProFile, projectName + "." + tempFiletype,
filenames[i - 1], filenames[i])
invokeMenuItem("File", "Exit")