From 637356f960244fb68e036c9aa4adfeaeb24ae682 Mon Sep 17 00:00:00 2001 From: Jakub Jaszczynski Date: Fri, 1 Oct 2010 13:54:15 +0200 Subject: [PATCH] small change --- src/mdictionary/backbone/backbone.cpp | 1 + src/plugins/google/GoogleDialog.cpp | 2 -- src/plugins/google/GooglePlugin.cpp | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/mdictionary/backbone/backbone.cpp b/src/mdictionary/backbone/backbone.cpp index e441ecb..721decc 100644 --- a/src/mdictionary/backbone/backbone.cpp +++ b/src/mdictionary/backbone/backbone.cpp @@ -530,6 +530,7 @@ void Backbone::addBookmark(QList translations) { foreach(translation,translations){ translation->setBookmark(true); trans.insert(translation->toXml(),translation->key()); + } foreach(QString value,trans.keys()){ diff --git a/src/plugins/google/GoogleDialog.cpp b/src/plugins/google/GoogleDialog.cpp index f9aac4c..2810b0e 100644 --- a/src/plugins/google/GoogleDialog.cpp +++ b/src/plugins/google/GoogleDialog.cpp @@ -45,8 +45,6 @@ GoogleDialog::GoogleDialog(GooglePlugin *plugin, _langFrom=GooglePlugin::languages.key("en"); } - - initializeUI(); connect(confirmButton, SIGNAL(clicked()), diff --git a/src/plugins/google/GooglePlugin.cpp b/src/plugins/google/GooglePlugin.cpp index 0d85f4c..38aac6c 100644 --- a/src/plugins/google/GooglePlugin.cpp +++ b/src/plugins/google/GooglePlugin.cpp @@ -192,22 +192,17 @@ QList GooglePlugin::searchWordList(QString word, int ) { wait=true; /* bool - change in slot done (initiate by http) */ stopped=false; /* bool - change in slot stop (initiate in gui) */ - int lastState=0; - //qDebug()<<"google3"; http->request(head, data); while(wait && (error=="" || error=="Unknown error") && !stopped){ error=http->errorString(); if(lastState!=http->state()) { lastState=http->state(); - // qDebug()<