Merge remote-tracking branch 'origin/10.0'

Change-Id: I02df4ad5e4a074f572cd6dd33551864e7c82f51c
This commit is contained in:
Eike Ziller
2023-04-26 11:07:54 +02:00
2 changed files with 19 additions and 3 deletions

View File

@@ -62,6 +62,10 @@ bool FileReader::fetch(const FilePath &filePath, QIODevice::OpenMode mode)
return false;
}
m_data = *contents;
if (mode & QIODevice::Text)
m_data = m_data.replace("\r\n", "\n");
return true;
}