forked from qt-creator/qt-creator
Core: filepathify expected document changes
Change-Id: Ifa9341e55c79459db9ecef3c441da9b2816695bf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -302,9 +302,10 @@ bool GenericBuildSystem::saveRawFileList(const QStringList &rawFileList)
|
||||
|
||||
bool GenericBuildSystem::saveRawList(const QStringList &rawList, const QString &fileName)
|
||||
{
|
||||
FileChangeBlocker changeGuard(fileName);
|
||||
const FilePath filePath = FilePath::fromString(fileName);
|
||||
FileChangeBlocker changeGuard(filePath);
|
||||
// Make sure we can open the file for writing
|
||||
Utils::FileSaver saver(Utils::FilePath::fromString(fileName), QIODevice::Text);
|
||||
Utils::FileSaver saver(filePath, QIODevice::Text);
|
||||
if (!saver.hasError()) {
|
||||
QTextStream stream(saver.file());
|
||||
for (const QString &filePath : rawList)
|
||||
|
||||
Reference in New Issue
Block a user