diff --git a/src/libsync/account.cpp b/src/libsync/account.cpp index da3a80a29ccd..872acee50feb 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 1c44b7144326..4cad863cf971 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 @@ protected Q_SLOTS: QSslConfiguration _sslConfiguration; Capabilities _capabilities; QString _serverVersion; - QColor _serverColor = Theme::defaultColor(); + QColor _serverColor; QColor _serverTextColor = QColorConstants::White; bool _skipE2eeMetadataChecksumValidation = false; QScopedPointer _sslErrorHandler;