fix bug (google dictionary will save in settings)
authorJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Mon, 30 Aug 2010 08:32:32 +0000 (10:32 +0200)
committerJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Mon, 30 Aug 2010 08:32:32 +0000 (10:32 +0200)
trunk/src/base/backbone/backbone.cpp
trunk/src/plugins/google/src/GooglePlugin.cpp
trunk/src/plugins/xdxf/src/xdxfplugin.cpp

index fca9ef4..aeb3be7 100644 (file)
@@ -245,7 +245,6 @@ void Backbone::addDictionary(CommonDictInterface *dict, bool active) {
  void Backbone::addInternalDictionary(CommonDictInterface* dict, bool active) {
      dict->setHash(++_dictNum); // Hash must be uniqe in every session but not between
      _dicts[dict] = active;
-
      connect(dict, SIGNAL(settingsChanged()), this, SLOT(dictUpdated()));
      connect(dict, SIGNAL(notify(Notify::NotifyType,QString)), this,
              SIGNAL(notify(Notify::NotifyType,QString)));
index d62d6ed..5061e19 100644 (file)
@@ -36,6 +36,7 @@ GooglePlugin::GooglePlugin(QObject *parent): CommonDictInterface(parent),
     _settings->setValue("connection_acepted","true");
     _dictDialog = new GoogleDictDialog(this,this);
     _icon = QIcon(":/icons/drawing.png");
+    _hash=123456;
 
     stopped = false;
     languages=initLanguages();
@@ -115,7 +116,7 @@ uint GooglePlugin::hash() const {
 }
 
 
-void GooglePlugin::setHash(uint) {
+void GooglePlugin::setHash(uint _hash) {
     this->_hash=_hash;
 }
 
index 09af5e7..95befe2 100644 (file)
@@ -51,7 +51,6 @@ XdxfPlugin::XdxfPlugin(QObject *parent) : CommonDictInterface(parent),
 }
 
 
-
 XdxfPlugin::~XdxfPlugin() {
     delete _settings;
     delete cachingDialog;