mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
allow using only a company name for a contact #LINQT-1602
This commit is contained in:
parent
443bcbf6c6
commit
e6266dcaf2
4 changed files with 731 additions and 726 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -78,10 +78,10 @@ MainRightPanel {
|
|||
Timer{
|
||||
id: saveDelay
|
||||
interval: 200
|
||||
onTriggered:{
|
||||
//: "Veuillez saisir un prénom"
|
||||
if (mainItem.contact.core.givenName.length === 0) {
|
||||
givenName.errorMessage = qsTr("contact_editor_mandatory_first_name_not_filled")
|
||||
onTriggered: {
|
||||
//: "Veuillez saisir un prénom ou un nom d'entreprise"
|
||||
if (mainItem.contact.core.givenName.length === 0 && mainItem.contact.core.organization.length === 0) {
|
||||
givenName.errorMessage = qsTr("contact_editor_mandatory_first_name_or_company_not_filled")
|
||||
return
|
||||
} else if (addressesList.count === 0 && phoneNumberList.count === 0) {
|
||||
//: "Veuillez saisir une adresse ou un numéro de téléphone"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue