diff options
author | Richard Maudsley <richard.maudsley@isode.com> | 2014-07-01 09:37:55 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-07-09 13:21:58 (GMT) |
commit | 8e0e67a24bfa8d3dcdeef2f177449c2a35901b99 (patch) | |
tree | 176237761ec77f2c3b57bd0d1875ed76dd29ad74 /Swift | |
parent | 16b1f85c1a7a0310b0a722c853e5fc8dd799570b (diff) | |
download | swift-8e0e67a24bfa8d3dcdeef2f177449c2a35901b99.zip swift-8e0e67a24bfa8d3dcdeef2f177449c2a35901b99.tar.bz2 |
Hide QtSuggestingJIDInput suggestions when the list is empty.
Test-Information:
Try search terms that return results and verify that the suggestions are shown. Try search terms that return no results and verify that the suggestions list is hidden. Verify that focus-out still hides the suggestion list correctly and that selecting items from the suggestion list still adds the JID to the contact list like before.
Change-Id: I98542df578da9bcfe8d545c77da9d82d6e69a2a6
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/UserSearch/QtSuggestingJIDInput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/UserSearch/QtSuggestingJIDInput.cpp b/Swift/QtUI/UserSearch/QtSuggestingJIDInput.cpp index 9b96627..78842a2 100644 --- a/Swift/QtUI/UserSearch/QtSuggestingJIDInput.cpp +++ b/Swift/QtUI/UserSearch/QtSuggestingJIDInput.cpp @@ -88,6 +88,7 @@ void QtSuggestingJIDInput::setSuggestions(const std::vector<Contact::ref>& sugge showPopup(); } else { currentContact_.reset(); + hidePopup(); } } |