some fixes

This commit is contained in:
Aniket Kumar 2020-04-23 07:42:36 +05:30 committed by Simon Redman
parent 97fea5e692
commit 1ed998a9b3

View file

@ -171,11 +171,6 @@ Kirigami.ScrollablePage
onTextChanged: { onTextChanged: {
if (filter.text != "") { if (filter.text != "") {
view.model.setConversationsFilterRole(ConversationListModel.AddressesRole) view.model.setConversationsFilterRole(ConversationListModel.AddressesRole)
if (conversationListModel.isAddressValid(filter.text)) {
newButton.enabled = true
} else {
newButton.enabled = false
}
} else { } else {
view.model.setConversationsFilterRole(ConversationListModel.ConversationIdRole) view.model.setConversationsFilterRole(ConversationListModel.ConversationIdRole)
} }
@ -218,8 +213,6 @@ Kirigami.ScrollablePage
conversationListModel.createConversationForAddress(filter.text) conversationListModel.createConversationForAddress(filter.text)
view.currentIndex = 0 view.currentIndex = 0
} }
filter.enabled = true
} }
Shortcut { Shortcut {