X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=blobdiff_plain;f=src%2Fcommon%2Fdastelefonbuch.cpp;h=68352e163c2ac8429d55d3212ef23249b479d6c5;hp=7cb36ad8c1399b26b35a0d655d2988b8209da172;hb=40f8e10e1efc5019011df940328cdc734576143d;hpb=d93782e7a5ae0fc072d094fd645cf415a34a2244 diff --git a/src/common/dastelefonbuch.cpp b/src/common/dastelefonbuch.cpp index 7cb36ad..68352e1 100644 --- a/src/common/dastelefonbuch.cpp +++ b/src/common/dastelefonbuch.cpp @@ -106,6 +106,14 @@ void DasTelefonbuch::addNumbers(SearchData* searchData, QString const& data, int index) { + if(data.isEmpty()) + { + qDebug() << "Server returned no data"; + setError(CONNECTION_FAILURE, "Server returned no data"); + emitRequestFinished(searchData, true, index); + return; + } + if(data.indexOf("1 Gesamttreffer") > 0) { addOnlyNumber(searchData, data, index);