SocketAPI: Create the socket API instance in folderman.

This commit is contained in:
Klaas Freitag 2014-07-14 15:31:38 +02:00
parent b2a10de71a
commit 68bfcf5d24

View file

@ -48,6 +48,9 @@ FolderMan::FolderMan(QObject *parent) :
connect(_folderWatcherSignalMapper, SIGNAL(mapped(const QString&)),
this, SLOT(slotScheduleSync(const QString&)));
MirallConfigFile cfg;
_socketApi = new SocketApi(this, QUrl::fromLocalFile(cfg.configPathWithAppName().append(QLatin1String("socket"))));
ne_sock_init();
Q_ASSERT(!_instance);
_instance = this;