Use QSaveFile wherever applicable

expected.hpp was fetched from:
b803e3c07b/include/nonstd/expected.hpp
This commit is contained in:
Chocobo1 2021-09-05 12:29:32 +08:00
parent 81139c0098
commit 21f72baae2
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
17 changed files with 2597 additions and 88 deletions

View file

@ -179,7 +179,7 @@ void FileLogger::openLogFile()
{
if (!m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)
|| !m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner))
{
{
m_logFile.close();
LogMsg(tr("An error occurred while trying to open the log file. Logging to file is disabled."), Log::CRITICAL);
}