Danish Eniro search fixed.
[jenirok] / src / gui / settingsdialog.cpp
index ac9d643..2c3ee77 100644 (file)
@@ -169,17 +169,27 @@ void SettingsDialog::saveSettings()
 
     Settings::instance()->endEdit();
 
+    bool infoboxShown = false;
+
     if(language != selectedLanguage_)
     {
         QMaemo5InformationBox::information(this, tr("You need to restart Jenirok for language change to take effect."));
         selectedLanguage_ = language;
+        infoboxShown = true;
     }
-    else if(Daemon::isRunning())
+
+    if(Daemon::isRunning())
     {
-        QMaemo5InformationBox::information(this, tr("Restarting daemon..."), 1500);
+        if(!infoboxShown)
+        {
+            QMaemo5InformationBox::information(this, tr("Restarting daemon..."), 1500);
+        }
+
         Daemon::restart();
     }
 
+    emit saved();
+
 }
 
 void SettingsDialog::resetCache()