fix bug - in plugin xdxf display of path to dictionary is change
authorJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Fri, 27 Aug 2010 11:01:16 +0000 (13:01 +0200)
committerJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Fri, 27 Aug 2010 11:01:16 +0000 (13:01 +0200)
trunk/src/plugins/google/src/GooglePlugin.cpp
trunk/src/plugins/xdxf/src/xdxfplugin.cpp

index 0b8271e..184e40e 100644 (file)
@@ -126,7 +126,6 @@ QIcon* GooglePlugin::icon() {
 CommonDictInterface* GooglePlugin::getNew(const Settings* settings) const
 {
     GooglePlugin *plugin = new GooglePlugin();
-
     if(settings) {
         plugin->setLangFrom(settings->value("langFrom"));
         plugin->setLangTo(settings->value("langTo"));
@@ -273,7 +272,7 @@ QString GooglePlugin::jsonParse(QString result) {
     result=translation;
     for(int i=0; i<words.size();i++) {
         result+="<br/>";
-        result+="<pos>"+partOfSpeach.at(i)+"</pos>: S";
+        result+="<pos>"+partOfSpeach.at(i)+"</pos>: ";
         for(int j=0; j<words.at(i)->size();j++)
             result+=words.at(i)->at(j)+", ";
         result.remove(result.size()-2,2);
index 178ddfa..e8efdfa 100644 (file)
@@ -369,7 +369,7 @@ void XdxfPlugin::setSettings(Settings *settings) {
        _settings->setValue("cached", "false");
     }
 
-
+    getDictionaryInfo();
     delete settings;
 
     Q_EMIT settingsChanged();