mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 15:02:16 -07:00
fix: build on both qt < and >= 6.10.0
This commit is contained in:
parent
3ae4a7d8a7
commit
1a62ee2e57
8 changed files with 57 additions and 27 deletions
|
|
@ -120,7 +120,11 @@ void ServerLogger::rotateLogs()
|
|||
flushBuffer();
|
||||
|
||||
logFile->close();
|
||||
logFile->open(QIODevice::Append);
|
||||
const auto result = logFile->open(QIODevice::Append);
|
||||
if (!result) {
|
||||
std::cerr << "ERROR: can't open() logfile." << std::endl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
QFile *ServerLogger::logFile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue