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();
}