summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-07-01 09:37:55 (GMT)
committerSwift Review <review@swift.im>2014-07-09 13:21:58 (GMT)
commit8e0e67a24bfa8d3dcdeef2f177449c2a35901b99 (patch)
tree176237761ec77f2c3b57bd0d1875ed76dd29ad74
parent16b1f85c1a7a0310b0a722c853e5fc8dd799570b (diff)
downloadswift-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
-rw-r--r--Swift/QtUI/UserSearch/QtSuggestingJIDInput.cpp1
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();
}
}