Fix LDAP crash and stuck assistant.

This commit is contained in:
Julien Wadel 2022-10-24 11:10:57 +02:00
parent f06f4ad6d6
commit 35d90ceb78
2 changed files with 9 additions and 3 deletions

View file

@ -507,7 +507,11 @@ QString AccountSettingsModel::getPrimarySipAddress () const {
}
QString AccountSettingsModel::getDefaultAccountDomain() const{
return Utils::coreStringToAppString(CoreManager::getInstance()->getCore()->getDefaultAccount()->getParams()->getDomain());
auto account = CoreManager::getInstance()->getCore()->getDefaultAccount();
if(account)
return Utils::coreStringToAppString(account->getParams()->getDomain());
else
return "";
}
// -----------------------------------------------------------------------------

View file

@ -138,12 +138,14 @@ ColumnLayout {
append({
$text: qsTr('useOtherSipAccount'),
$view: 'UseOtherSipAccount',
$viewType: 'UseOtherSipAccount'
$viewType: 'UseOtherSipAccount',
$props: {}
})
append( {
$text: qsTr('fetchRemoteConfiguration'),
$view: 'FetchRemoteConfiguration',
$viewType: 'FetchRemoteConfiguration'
$viewType: 'FetchRemoteConfiguration',
$props: {}
})
}
}