From 8e0e67a24bfa8d3dcdeef2f177449c2a35901b99 Mon Sep 17 00:00:00 2001 From: Richard Maudsley <richard.maudsley@isode.com> Date: Tue, 1 Jul 2014 10:37:55 +0100 Subject: 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 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(); } } -- cgit v0.10.2-6-g49f6