diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-07-12 09:55:49 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-07-12 14:27:18 +0300 |
commit | c77ebb5a90caa2ffcd7a313b9c093e95c0180aae (patch) | |
tree | 33724512a2ca8db6a96a776f33959c465bad7c4d /src | |
parent | 404e1b716e3ee6745d78188d222b6ce13f55c050 (diff) |
Cleanup condition
Diffstat (limited to 'src')
-rw-r--r-- | src/libsync/logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 909b59858..95d74668b 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -291,7 +291,7 @@ void Logger::rotateLog() } // rename previous log file if size != 0 const auto info = QFileInfo(logName); - if (info.exists(logName) && !info.size() == 0) { + if (info.exists(logName) && info.size() != 0) { previousLog = dir.filePath(QStringLiteral("%1-%2.log").arg(qApp->applicationName(), info.created().toString(QStringLiteral("MMdd_hh.mm.ss.zzz")))); if (!QFile(logName).rename(previousLog)) { std::cerr << "Failed to rename: " << qPrintable(logName) << " to " << qPrintable(previousLog) << std::endl; |