mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user