forked from qt-creator/qt-creator
Squish: Update to changed behavior when renaming
The bugreport I wrote about this was rated invalid so now this is the expected behavior. Change-Id: Ia187062552ad9d4857b5078d4c9c5dde4c8b7521 Task-number: QTCREATORBUG-14469 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -55,12 +55,7 @@ def main():
|
||||
previous = filenames[-1]
|
||||
for filename in filenames:
|
||||
tempFiletype = filetype
|
||||
if previous in ("test", "TEST"):
|
||||
if tempFiletype in ("Headers", "Sources", "QML"):
|
||||
tempFiletype = "Sources"
|
||||
else: # then it must be Resources
|
||||
tempFiletype = "Other files"
|
||||
elif filetype == "QML" and previous[-4:] != ".qml":
|
||||
if previous in ("test", "TEST") or filetype == "QML" and previous[-4:] != ".qml":
|
||||
tempFiletype = "Other files"
|
||||
renameFile(templateDir, usedProFile, projectName + "." + tempFiletype,
|
||||
previous, filename)
|
||||
|
Reference in New Issue
Block a user