Fixed phantom errors linked with saving/loading settings
[mdictionary] / trunk / src / base / backbone / backbone.cpp
index ce169e9..97e302f 100644 (file)
@@ -55,14 +55,16 @@ void Backbone::init() {
    _history = new History(5, this);
 }
 
-Backbone::Backbone(QString pluginPath, QString configPath, QObject *parent)
+Backbone::Backbone(QString pluginPath, QString configPath, bool dry,
+                   QObject *parent)
     : QObject(parent)
 {
-    init();
-    dryRun = true;
     _pluginPath = pluginPath;
     _configPath = configPath;
     _defaultConfigPath = configPath;
+    init();
+    if(dry)
+        dryRun = true;
 }
 
 
@@ -356,6 +358,7 @@ void Backbone::loadDicts(QString fileName, bool _default) {
 void Backbone::dictUpdated() {
     if(dryRun)
         return;
+    qDebug() << "UPDATE";
     QFileInfo file(QDir::toNativeSeparators(_configPath));
     QDir confDir(file.dir());
     if(!confDir.exists())