From 01cb5d7e222a7b783d2540aa21437825c0c0d1e8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 23 Aug 2023 09:26:31 +0800 Subject: [PATCH] Do not include theme header in account header Signed-off-by: Claudio Cambra --- src/libsync/account.cpp | 2 ++ src/libsync/account.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libsync/account.cpp b/src/libsync/account.cpp index da3a80a29..872acee50 100644 --- a/src/libsync/account.cpp +++ b/src/libsync/account.cpp @@ -22,6 +22,7 @@ #include "creds/abstractcredentials.h" #include "networkjobs.h" #include "pushnotifications.h" +#include "theme.h" #include "version.h" #include "deletejob.h" @@ -70,6 +71,7 @@ const char app_password[] = "_app-password"; Account::Account(QObject *parent) : QObject(parent) , _capabilities(QVariantMap()) + , _serverColor(Theme::defaultColor()) { qRegisterMetaType("AccountPtr"); qRegisterMetaType("Account*"); diff --git a/src/libsync/account.h b/src/libsync/account.h index 1c44b7144..4cad863cf 100644 --- a/src/libsync/account.h +++ b/src/libsync/account.h @@ -35,7 +35,7 @@ #include "clientsideencryption.h" #include "common/utility.h" #include "syncfileitem.h" -#include "theme.h" + #include class QSettings; @@ -409,7 +409,7 @@ private: QSslConfiguration _sslConfiguration; Capabilities _capabilities; QString _serverVersion; - QColor _serverColor = Theme::defaultColor(); + QColor _serverColor; QColor _serverTextColor = QColorConstants::White; bool _skipE2eeMetadataChecksumValidation = false; QScopedPointer _sslErrorHandler; -- 2.30.2