SANKORE-305 add required object initialize to constructor

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 41b0e183f7
commit d7be307005
  1. 3
      src/adaptors/publishing/UBDocumentPublisher.cpp

@ -56,6 +56,7 @@ UBDocumentPublisher::UBDocumentPublisher(UBDocumentProxy* pDocument, QObject *pa
, bLoginCookieSet(false) , bLoginCookieSet(false)
{ {
//NOOP //NOOP
init();
} }
@ -555,8 +556,8 @@ void UBDocumentPublisher::init()
mDocInfos.title = ""; mDocInfos.title = "";
mDocInfos.description = ""; mDocInfos.description = "";
mpNetworkMgr = new QNetworkAccessManager(this);
mpCookieJar = new QNetworkCookieJar(); mpCookieJar = new QNetworkCookieJar();
mpNetworkMgr = new QNetworkAccessManager(this);
connect(mpNetworkMgr, SIGNAL(finished(QNetworkReply*)), this, SLOT(onFinished(QNetworkReply*))); connect(mpNetworkMgr, SIGNAL(finished(QNetworkReply*)), this, SLOT(onFinished(QNetworkReply*)));
} }

Loading…
Cancel
Save