2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 21:57:42 +00:00

Do not clear search query on peer selection

This commit is contained in:
RadRussianRus 2020-03-28 09:51:05 +03:00
parent 2fa5915594
commit a63f44ce1d
2 changed files with 3 additions and 3 deletions

View File

@ -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());

View File

@ -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);
}