fix(SmartSearchBar): hide "add button" if contacts are disabled

This commit is contained in:
Ronan Abhamon 2018-07-24 15:42:21 +02:00
parent cf61cd4065
commit 7c5c1255d5

View file

@ -61,7 +61,7 @@ SearchBox {
headerButtonDescription: qsTr('addContact')
headerButtonIcon: 'contact_add'
headerButtonAction: (function (sipAddress) {
headerButtonAction: SettingsModel.contactsEnabled && (function (sipAddress) {
searchBox.closeMenu()
searchBox.addContact(sipAddress)
})