Fix a bug where we were setting default settings no matter what and do some minor UI enhancements.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16411 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
João Mesquita
2010-01-19 23:54:32 +00:00
parent a2710c9ccb
commit 236db6ae69
6 changed files with 24 additions and 3 deletions

View File

@@ -180,8 +180,13 @@ static switch_status_t do_config(void)
switch_xml_free(xml);
QSettings settings;
if (!settings.allKeys().contains("FreeSWITCH/conf"))
settings.beginGroup("FreeSWITCH/conf");
if (settings.childGroups().isEmpty())
{
qDebug() << "We are settings default.";
setQSettingsDefaults();
}
settings.endGroup();
setGlobals();
return SWITCH_STATUS_SUCCESS;