Convert line endings to "\n" to allow easier matching

This commit is contained in:
WarmUpTill 2022-09-10 21:28:41 +02:00 committed by WarmUpTill
parent fa3ae607b5
commit a93305e16e

View File

@ -74,7 +74,7 @@ bool MacroConditionFile::checkLocalFileContent()
{
QString t = QString::fromStdString(_text);
QFile file(QString::fromStdString(_file));
if (!file.open(QIODevice::ReadOnly)) {
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
return false;
}