Fix warning when WebFactory is used for the first time when updating feeds.

This commit is contained in:
Martin Rotter 2016-11-09 07:42:03 +01:00
parent 9e66dc9f20
commit 61acb4a5dd
1 changed files with 4 additions and 0 deletions

View File

@ -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<Message> >("QList<Message>");
qRegisterMetaType<QList<RootItem*> >("QList<RootItem*>");
// 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();