mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 19:38:09 +00:00
Hide password url if not set.
Fix ldap settings placehodler.
This commit is contained in:
parent
54196cc950
commit
665e244844
4 changed files with 10 additions and 1 deletions
|
|
@ -506,6 +506,12 @@ QString AccountSettingsModel::getPrimarySipAddress () const {
|
|||
);
|
||||
}
|
||||
|
||||
QString AccountSettingsModel::getPrimaryDomain() const{
|
||||
return Utils::coreStringToAppString(
|
||||
CoreManager::getInstance()->getCore()->createPrimaryContactParsed()->getDomain()
|
||||
);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
QVariantList AccountSettingsModel::getAccounts () const {
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class AccountSettingsModel : public QObject {
|
|||
Q_PROPERTY(QString primaryDisplayName READ getPrimaryDisplayName WRITE setPrimaryDisplayName NOTIFY primaryDisplayNameChanged)
|
||||
Q_PROPERTY(QString primaryUsername READ getPrimaryUsername WRITE setPrimaryUsername NOTIFY primaryUsernameChanged)
|
||||
Q_PROPERTY(QString primarySipAddress READ getPrimarySipAddress NOTIFY primarySipAddressChanged)
|
||||
Q_PROPERTY(QString primaryDomain READ getPrimaryDomain NOTIFY primarySipAddressChanged)
|
||||
|
||||
Q_PROPERTY(QVariantList accounts READ getAccounts NOTIFY accountsChanged)
|
||||
|
||||
|
|
@ -128,6 +129,7 @@ private:
|
|||
void setPrimaryDisplayName (const QString &displayName);
|
||||
|
||||
QString getPrimarySipAddress () const;
|
||||
QString getPrimaryDomain () const;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ AssistantAbstractView {
|
|||
}
|
||||
Text {
|
||||
anchors.right:parent.right
|
||||
visible: ConstantsCpp.PasswordRecoveryUrl
|
||||
elide: Text.ElideRight
|
||||
font.pointSize: AboutStyle.copyrightBlock.url.pointSize
|
||||
linkColor: AboutStyle.copyrightBlock.url.color
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ DialogPlus {
|
|||
label: qsTr('domainLabel')//'Domain'
|
||||
TextField {
|
||||
id:domain
|
||||
placeholderText :'sip.linphone.org'
|
||||
placeholderText : AccountSettingsModel.primaryDomain
|
||||
text:ldapData.sipDomain
|
||||
error : ldapData.sipDomainFieldError
|
||||
onTextChanged: ldapData.sipDomain = text
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue