From b66ffddb8085bd99ab6c40864533778680d4965c Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 06:23:10 +0300 Subject: [PATCH] [Improvement] Do not clear search query after selection in multi-select --- 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 01c6fbd86..bb8641c2a 100644 --- a/Telegram/SourceFiles/boxes/peer_list_box.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_box.cpp @@ -271,7 +271,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()); @@ -287,7 +287,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 39d6fbc14..873510db3 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -838,7 +838,7 @@ void ShareBox::innerSelectedChanged( bool checked) { if (checked) { addPeerToMultiSelect(thread); - _select->clearQuery(); + //_select->clearQuery(); } else { _select->removeItem(thread->peer()->id.value); }