[Browser] Correctly init parent class

This commit is contained in:
Koncord 2017-10-11 06:35:22 +08:00
parent 62588ce088
commit 1fd16ba69c

View file

@ -35,9 +35,8 @@ PingHelper &PingHelper::Get()
return helper; return helper;
} }
PingHelper::PingHelper() PingHelper::PingHelper() : QObject()
{ {
QObject();
pingThread = new QThread; pingThread = new QThread;
pingUpdater = new PingUpdater; pingUpdater = new PingUpdater;
pingUpdater->moveToThread(pingThread); pingUpdater->moveToThread(pingThread);