From 61acb4a5dd8343da179a529500499eeb7e6829e5 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 9 Nov 2016 07:42:03 +0100 Subject: [PATCH] Fix warning when WebFactory is used for the first time when updating feeds. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 68c4cedb9..3277cae53 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,6 +27,7 @@ #include "gui/feedsview.h" #include "gui/messagebox.h" #include "network-web/silentnetworkaccessmanager.h" +#include "network-web/webfactory.h" // Needed for setting ini file format on Mac OS. #ifdef Q_OS_MAC @@ -87,6 +88,9 @@ int main(int argc, char *argv[]) { qRegisterMetaType >("QList"); qRegisterMetaType >("QList"); + // Just call this instance, so that is is created in main GUI thread. + WebFactory::instance(); + // Add an extra path for non-system icon themes and set current icon theme // and skin. qApp->icons()->setupSearchPaths();