Fix warning when WebFactory is used for the first time when updating feeds.
This commit is contained in:
parent
9e66dc9f20
commit
61acb4a5dd
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
||||||
#include "gui/feedsview.h"
|
#include "gui/feedsview.h"
|
||||||
#include "gui/messagebox.h"
|
#include "gui/messagebox.h"
|
||||||
#include "network-web/silentnetworkaccessmanager.h"
|
#include "network-web/silentnetworkaccessmanager.h"
|
||||||
|
#include "network-web/webfactory.h"
|
||||||
|
|
||||||
// Needed for setting ini file format on Mac OS.
|
// Needed for setting ini file format on Mac OS.
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
|
@ -87,6 +88,9 @@ int main(int argc, char *argv[]) {
|
||||||
qRegisterMetaType<QList<Message> >("QList<Message>");
|
qRegisterMetaType<QList<Message> >("QList<Message>");
|
||||||
qRegisterMetaType<QList<RootItem*> >("QList<RootItem*>");
|
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
|
// Add an extra path for non-system icon themes and set current icon theme
|
||||||
// and skin.
|
// and skin.
|
||||||
qApp->icons()->setupSearchPaths();
|
qApp->icons()->setupSearchPaths();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue