From c9ee0a03431038355d195051156b50fcae7658f5 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Fri, 3 Jul 2020 13:16:09 +0200 Subject: [PATCH] Log: Improve log message [ info gui.folder ]: Folder sync result: 4... by including the name of the folder and print the name of the result --- src/gui/folder.cpp | 2 +- src/libsync/syncresult.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 187377eab..d437241bc 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -399,7 +399,7 @@ void Folder::showSyncResultPopup() createGuiLog(_syncResult.firstItemLocked()->_file, LogStatusFileLocked, lockedCount); } - qCInfo(lcFolder) << "Folder sync result: " << int(_syncResult.status()); + qCInfo(lcFolder) << "Folder" << _syncResult.folder() << "sync result: " << _syncResult.status(); } void Folder::createGuiLog(const QString &filename, LogStatus status, int count, diff --git a/src/libsync/syncresult.h b/src/libsync/syncresult.h index a3079f8af..8a8f299fe 100644 --- a/src/libsync/syncresult.h +++ b/src/libsync/syncresult.h @@ -30,6 +30,7 @@ namespace OCC { */ class OWNCLOUDSYNC_EXPORT SyncResult { + Q_GADGET public: enum Status { Undefined, @@ -43,6 +44,7 @@ public: SetupError, Paused }; + Q_ENUM(Status); SyncResult(); void reset(); -- 2.30.2