diff options
author | Christian Kandeler <[email protected]> | 2019-10-29 17:11:00 +0100 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2019-11-04 13:37:17 +0000 |
commit | 03a52b9c8725992408f0087294ab1bc5be9159e6 (patch) | |
tree | 827c5b4db6621e9a4886614af1e9c4bc6c545b4a /src/plugins/qmakeprojectmanager/qmakeparsernodes.h | |
parent | 5e4d13f3439086fcec08f1598b3605f766843da8 (diff) |
QmakeProjectManager: Improve renaming functionality
This was implemented rather sloppily: The file was removed from all
variables, but only added to one. Also, no care was taken to insert the
new file name into the same block the old one was removed from.
Fixes: QTCREATORBUG-19257
Change-Id: Ib309389ba7647189112d5c7dd7b3e784f921d2c3
Reviewed-by: Joerg Bornemann <[email protected]>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakeparsernodes.h')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakeparsernodes.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeparsernodes.h b/src/plugins/qmakeprojectmanager/qmakeparsernodes.h index a6e7fa4ad56..538d1a65e91 100644 --- a/src/plugins/qmakeprojectmanager/qmakeparsernodes.h +++ b/src/plugins/qmakeprojectmanager/qmakeparsernodes.h @@ -192,10 +192,7 @@ protected: }; enum class Change { Save, TestOnly }; - bool renameFile(const QString &oldName, - const QString &newName, - const QString &mimeType, - Change mode = Change::Save); + bool renameFile(const QString &oldName, const QString &newName, Change mode); void changeFiles(const QString &mimeType, const QStringList &filePaths, QStringList *notChanged, |