From a63f44ce1dbd4136eefee2e32ebb38504e9c749a Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sat, 28 Mar 2020 09:51:05 +0300 Subject: [PATCH] Do not clear search query on peer selection --- Telegram/SourceFiles/boxes/peer_list_box.cpp | 4 ++-- Telegram/SourceFiles/boxes/share_box.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peer_list_box.cpp b/Telegram/SourceFiles/boxes/peer_list_box.cpp index e3446f735..1e1f12c9e 100644 --- a/Telegram/SourceFiles/boxes/peer_list_box.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_box.cpp @@ -194,7 +194,7 @@ void PeerListBox::peerListSetRowChecked( peerListUpdateRow(row); // This call deletes row from _searchRows. - _select->entity()->clearQuery(); + //_select->entity()->clearQuery(); } else { // The itemRemovedCallback will call changeCheckState() here. _select->entity()->removeItem(row->id()); @@ -210,7 +210,7 @@ void PeerListBox::peerListSetForeignRowChecked( addSelectItem(row, animated); // This call deletes row from _searchRows. - _select->entity()->clearQuery(); + //_select->entity()->clearQuery(); } else { // The itemRemovedCallback will call changeCheckState() here. _select->entity()->removeItem(row->id()); diff --git a/Telegram/SourceFiles/boxes/share_box.cpp b/Telegram/SourceFiles/boxes/share_box.cpp index 09bb042f0..3b419e06e 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -457,7 +457,7 @@ void ShareBox::addPeerToMultiSelect(PeerData *peer, bool skipAnimation) { void ShareBox::innerSelectedChanged(PeerData *peer, bool checked) { if (checked) { addPeerToMultiSelect(peer); - _select->clearQuery(); + //_select->clearQuery(); } else { _select->removeItem(peer->id); }