X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=trunk%2Fsrc%2Fplugins%2Fgoogle%2Fsrc%2FGooglePlugin.cpp;h=bc6995c9f6737a2014ae8abbdd60a4d4ed3ccd1e;hb=1ca94b3e0480aa432eac4189e46318344e0f604b;hp=b07c48f2e4092b23500d43b3460c3cc749ed1a05;hpb=8f8bc85913877f25351471c5684dff329502b1da;p=mdictionary diff --git a/trunk/src/plugins/google/src/GooglePlugin.cpp b/trunk/src/plugins/google/src/GooglePlugin.cpp index b07c48f..bc6995c 100644 --- a/trunk/src/plugins/google/src/GooglePlugin.cpp +++ b/trunk/src/plugins/google/src/GooglePlugin.cpp @@ -20,6 +20,7 @@ *******************************************************************************/ /*! \file GooglePlugin.cpp + \author Jakub Jaszczynski */ #include "GooglePlugin.h" @@ -155,7 +156,11 @@ QList GooglePlugin::searchWordList(QString word, int limit) { http->setHost("www.google.pl"); wait=true; http->request(head, data); - while(wait); + QString error(""); + while(wait && (error=="" || error=="Unknown error")) + error=http->errorString(); + if(error!="" && error!="Unknown error") + qDebug()<readAll()); text=jsonParse(text); @@ -170,7 +175,6 @@ QString GooglePlugin::jsonParse(QString result) { int pos=0,pos2=0; int index=0; int size=0; - qDebug()<