diff --git a/Telegram/SourceFiles/boxes/peer_list_box.cpp b/Telegram/SourceFiles/boxes/peer_list_box.cpp index 03b9bbb6a..067f8aa9f 100644 --- a/Telegram/SourceFiles/boxes/peer_list_box.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_box.cpp @@ -267,9 +267,9 @@ void PeerListBox::peerListSetRowChecked( peerListUpdateRow(row); // This call deletes row from _searchRows. - if (_select) { - _select->entity()->clearQuery(); - } + //if (_select) { + // _select->entity()->clearQuery(); + //} } else { // The itemRemovedCallback will call changeCheckState() here. if (_select) { @@ -289,7 +289,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 ada8c7d5a..1acd2ee7d 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -860,7 +860,7 @@ void ShareBox::innerSelectedChanged( bool checked) { if (checked) { addPeerToMultiSelect(thread); - _select->clearQuery(); + //_select->clearQuery(); } else { _select->removeItem(thread->peer()->id.value); }