Fix warning when WebFactory is used for the first time when updating feeds.
This commit is contained in:
parent
9e66dc9f20
commit
61acb4a5dd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue