diff options
author | David Schulz <david.schulz@qt.io> | 2021-06-09 09:59:37 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2021-06-17 06:30:51 +0000 |
commit | 410b02f8c5b1631c376e269c670c559524b5eabb (patch) | |
tree | 856dbeb57aa7c8d25d99a38be11b58739622dbc1 /src/plugins/python/pythonproject.cpp | |
parent | 072958c3b090338356d61d63add9e2ebc73a6463 (diff) | |
download | qt-creator-410b02f8c5b1631c376e269c670c559524b5eabb.tar.gz |
Core: filepathify expected document changes
Change-Id: Ifa9341e55c79459db9ecef3c441da9b2816695bf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonproject.cpp')
-rw-r--r-- | src/plugins/python/pythonproject.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp index 3d68050cd8..e1304188ad 100644 --- a/src/plugins/python/pythonproject.cpp +++ b/src/plugins/python/pythonproject.cpp @@ -290,12 +290,13 @@ bool PythonBuildSystem::saveRawFileList(const QStringList &rawFileList) bool PythonBuildSystem::saveRawList(const QStringList &rawList, const QString &fileName) { - FileChangeBlocker changeGuarg(fileName); + const FilePath filePath = FilePath::fromString(fileName); + FileChangeBlocker changeGuarg(filePath); bool result = false; // New project file if (fileName.endsWith(".pyproject")) { - FileSaver saver(FilePath::fromString(fileName), QIODevice::ReadOnly | QIODevice::Text); + FileSaver saver(filePath, QIODevice::ReadOnly | QIODevice::Text); if (!saver.hasError()) { QString content = QTextStream(saver.file()).readAll(); if (saver.finalize(ICore::dialogParent())) { @@ -306,7 +307,7 @@ bool PythonBuildSystem::saveRawList(const QStringList &rawList, const QString &f } } } else { // Old project file - FileSaver saver(FilePath::fromString(fileName), QIODevice::WriteOnly | QIODevice::Text); + FileSaver saver(filePath, QIODevice::WriteOnly | QIODevice::Text); if (!saver.hasError()) { QTextStream stream(saver.file()); for (const QString &filePath : rawList) |