fix typo leading to display more contacts not called
This commit is contained in:
parent
b52c606a1e
commit
42a6a7a3b7
2 changed files with 34 additions and 32 deletions
|
|
@ -91,7 +91,6 @@ void MagicSearchModel::onSearchResultsReceived(const std::shared_ptr<linphone::M
|
||||||
//"
|
//"
|
||||||
// << (f ? f.get() : nullptr);
|
// << (f ? f.get() : nullptr);
|
||||||
bool isLdap = (result->getSourceFlags() & (int)linphone::MagicSearch::Source::LdapServers) != 0;
|
bool isLdap = (result->getSourceFlags() & (int)linphone::MagicSearch::Source::LdapServers) != 0;
|
||||||
qInfo() << "result is ldap" << isLdap;
|
|
||||||
// Do not add it into ldap_friends if it already exists in app_friends.
|
// Do not add it into ldap_friends if it already exists in app_friends.
|
||||||
if (isLdap && f &&
|
if (isLdap && f &&
|
||||||
(!fList || fList->getDisplayName() != "app_friends")) { // Double check because of SDK merging that lead to
|
(!fList || fList->getDisplayName() != "app_friends")) { // Double check because of SDK merging that lead to
|
||||||
|
|
|
||||||
|
|
@ -217,9 +217,11 @@ Flickable {
|
||||||
}
|
}
|
||||||
|
|
||||||
onAtYEndChanged: if (atYEnd) {
|
onAtYEndChanged: if (atYEnd) {
|
||||||
if ((contactsProxy.haveMore && contactList.expanded)
|
if (favoritesProxy.haveMore && favoritesList.expanded && mainItem.showFavorites)
|
||||||
|| mainItem.hideSuggestions)
|
favoritesProxy.displayMore()
|
||||||
|
else if (contactsProxy.haveMore && contactsList.expanded) {
|
||||||
contactsProxy.displayMore()
|
contactsProxy.displayMore()
|
||||||
|
}
|
||||||
else
|
else
|
||||||
suggestionsProxy.displayMore()
|
suggestionsProxy.displayMore()
|
||||||
}
|
}
|
||||||
|
|
@ -293,6 +295,7 @@ Flickable {
|
||||||
}
|
}
|
||||||
|
|
||||||
property MagicSearchProxy proxy: MagicSearchProxy {
|
property MagicSearchProxy proxy: MagicSearchProxy {
|
||||||
|
id: favoritesProxy
|
||||||
parentProxy: mainItem.mainModel
|
parentProxy: mainItem.mainModel
|
||||||
filterType: MagicSearchProxy.FilteringTypes.Favorites
|
filterType: MagicSearchProxy.FilteringTypes.Favorites
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue