mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
fix qt 6.10 build
This commit is contained in:
parent
3ae4a7d8a7
commit
412f144922
8 changed files with 84 additions and 156 deletions
|
|
@ -51,7 +51,10 @@ void Logger::openLogfileSession()
|
|||
}
|
||||
|
||||
fileHandle.setFileName(LOGGER_FILENAME);
|
||||
fileHandle.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text);
|
||||
if (!fileHandle.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text)) {
|
||||
qWarning() << "Logger failed to open" << LOGGER_FILENAME << "for writing";
|
||||
return;
|
||||
}
|
||||
fileStream.setDevice(&fileHandle);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||
fileStream << "Log session started at " << QDateTime::currentDateTime().toString() << Qt::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue