Skip to content
Snippets Groups Projects
Commit e7f24d01 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

settingsview: update banned contact correctly

Prevent the issue of hidden banned contact ui when new contact
request is received

Change-Id: I6b6b5c1e702a5fcb23a1ac26efb7df814bce01a8
parent 87c75436
No related branches found
No related tags found
No related merge requests found
...@@ -70,13 +70,9 @@ ColumnLayout { ...@@ -70,13 +70,9 @@ ColumnLayout {
updateAndShowBannedContactsSlot() updateAndShowBannedContactsSlot()
} }
function setVisibility() {
root.visible = bannedListWidget.model.rowCount() > 0
}
function updateAndShowBannedContactsSlot() { function updateAndShowBannedContactsSlot() {
bannedListWidget.model.reset() bannedListWidget.model.reset()
setVisibility() root.visible = bannedListWidget.model.rowCount() > 0
if(bannedListWidget.model.rowCount() <= 0) { if(bannedListWidget.model.rowCount() <= 0) {
bannedListWidget.visible = false bannedListWidget.visible = false
bannedContactsBtn.visible = false bannedContactsBtn.visible = false
......
...@@ -55,7 +55,7 @@ Rectangle { ...@@ -55,7 +55,7 @@ Rectangle {
accountProfile.updateAccountInfo() accountProfile.updateAccountInfo()
userIdentity.updateAccountInfo() userIdentity.updateAccountInfo()
linkedDevices.updateAndShowDevicesSlot() linkedDevices.updateAndShowDevicesSlot()
bannedContacts.setVisibility() bannedContacts.updateAndShowBannedContactsSlot()
advancedSettings.updateAdvancedAccountInfos() advancedSettings.updateAdvancedAccountInfos()
setPasswordButtonText() setPasswordButtonText()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment