mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Do not clear search query on peer selection
This commit is contained in:
parent
2fa5915594
commit
a63f44ce1d
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user