Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Jenirok
Summary Tracker SCM Files
authoreshe <jessehakanen@gmail.com>
Sun, 27 Jun 2010 20:08:50 +0000 (21:08 +0100)
committereshe <jessehakanen@gmail.com>
Sun, 27 Jun 2010 20:08:50 +0000 (21:08 +0100)
src/common/eniro.cpp
src/common/enirocoreconfig.cpp
src/daemon/calllistener.cpp

index 9a9f1a2..d3ebf5b 100644 (file)
@@ -512,7 +512,6 @@ void Eniro::emitRequestFinished(int key, SearchData* data, bool error)
 QMap <Eniro::Site, Eniro::SiteDetails> Eniro::getSites()
 {
     QMap <Site, SiteDetails> sites;
-    SiteDetails details;
 
     for(int i = 0; i < SITE_COUNT; i++)
     {
index e272bce..86af526 100644 (file)
@@ -65,7 +65,9 @@ void EniroCoreConfig::getConfig(QMap<QString, QString>& config)
 {
     load();
 
-    config = config_;
+    config[USERNAME_COLUMN] = config_[USERNAME_COLUMN];
+    config[PASSWORD_COLUMN] = config_[PASSWORD_COLUMN];
+    config[SITE_COLUMN] = config_[SITE_COLUMN];
 }
 
 void EniroCoreConfig::loadFromConfig(QMap<QString, QString> const& config)
index d977f36..debb367 100644 (file)
@@ -60,8 +60,10 @@ bool CallListener::begin()
     }
 
     sourceId_ = Source::stringToId(Settings::instance()->get("source"));
+    QMap<QString, QString> tmpConfig;
     SourceCoreConfig* config = SourceCoreConfig::getCoreConfig(sourceId_);
-    config->getConfig(sourceConfig_);
+    config->getConfig(tmpConfig);
+    sourceConfig_ = tmpConfig;
     delete config;
 
     systemBus_.connect(CALL_SERVICE_NAME,

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment