diff --git a/src/gui/EditWidgetIcons.cpp b/src/gui/EditWidgetIcons.cpp index 74e57cdd4..1e1f5db29 100644 --- a/src/gui/EditWidgetIcons.cpp +++ b/src/gui/EditWidgetIcons.cpp @@ -49,6 +49,8 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent) , m_customIconModel(new CustomIconModel(this)) #ifdef WITH_XC_HTTP , m_httpClient(nullptr) + , m_fallbackToGoogle(true) + , m_redirectCount(0) #endif { m_ui->setupUi(this); @@ -69,9 +71,6 @@ EditWidgetIcons::EditWidgetIcons(QWidget* parent) connect(m_ui->faviconButton, SIGNAL(clicked()), SLOT(downloadFavicon())); m_ui->faviconButton->setVisible(false); - - m_fallbackToGoogle = true; - m_redirectCount = 0; } EditWidgetIcons::~EditWidgetIcons() diff --git a/src/gui/EditWidgetIcons.h b/src/gui/EditWidgetIcons.h index 467796266..b0ff6c6c9 100644 --- a/src/gui/EditWidgetIcons.h +++ b/src/gui/EditWidgetIcons.h @@ -89,12 +89,12 @@ private: Database* m_database; Uuid m_currentUuid; QString m_url; - QUrl m_redirectUrl; - bool m_fallbackToGoogle; - unsigned short m_redirectCount; DefaultIconModel* const m_defaultIconModel; CustomIconModel* const m_customIconModel; #ifdef WITH_XC_HTTP + QUrl m_redirectUrl; + bool m_fallbackToGoogle; + unsigned short m_redirectCount; qhttp::client::QHttpClient* m_httpClient; #endif