X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=blobdiff_plain;f=src%2Fcommon%2Fmobil1881.cpp;h=69327b04b185e3696cd133b4dd4781aab137dd63;hp=6ded070a983e29cd0f99082fb240fe189a040ec0;hb=d93782e7a5ae0fc072d094fd645cf415a34a2244;hpb=395da8664c99ec244e746de156217bbba96dea7b diff --git a/src/common/mobil1881.cpp b/src/common/mobil1881.cpp index 6ded070..69327b0 100644 --- a/src/common/mobil1881.cpp +++ b/src/common/mobil1881.cpp @@ -95,7 +95,6 @@ void Mobil1881::handleHttpError(int id) if(pendingSearches_.at(i) && pendingSearches_.at(i)->searchIds.find(id) != pendingSearches_.at(i)->searchIds.end()) { - setError(Source::CONNECTION_FAILURE, http_.errorString()); emitRequestFinished(pendingSearches_.at(i), true, i); break; @@ -107,6 +106,12 @@ void Mobil1881::addNumbers(SearchData* searchData, QString const& data, int index) { + if(data.isEmpty()) + { + qDebug() << "Server returned no data"; + qDebug() << "Headers: " << http_.lastResponse().toString(); + } + if(data.indexOf("Last ned vCard") > 0) { addOnlyNumber(searchData, data, index);