mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Do not clear search query on peer selection
This commit is contained in:
@@ -194,7 +194,7 @@ void PeerListBox::peerListSetRowChecked(
|
|||||||
peerListUpdateRow(row);
|
peerListUpdateRow(row);
|
||||||
|
|
||||||
// This call deletes row from _searchRows.
|
// This call deletes row from _searchRows.
|
||||||
_select->entity()->clearQuery();
|
//_select->entity()->clearQuery();
|
||||||
} else {
|
} else {
|
||||||
// The itemRemovedCallback will call changeCheckState() here.
|
// The itemRemovedCallback will call changeCheckState() here.
|
||||||
_select->entity()->removeItem(row->id());
|
_select->entity()->removeItem(row->id());
|
||||||
@@ -210,7 +210,7 @@ void PeerListBox::peerListSetForeignRowChecked(
|
|||||||
addSelectItem(row, animated);
|
addSelectItem(row, animated);
|
||||||
|
|
||||||
// This call deletes row from _searchRows.
|
// This call deletes row from _searchRows.
|
||||||
_select->entity()->clearQuery();
|
//_select->entity()->clearQuery();
|
||||||
} else {
|
} else {
|
||||||
// The itemRemovedCallback will call changeCheckState() here.
|
// The itemRemovedCallback will call changeCheckState() here.
|
||||||
_select->entity()->removeItem(row->id());
|
_select->entity()->removeItem(row->id());
|
||||||
|
@@ -457,7 +457,7 @@ void ShareBox::addPeerToMultiSelect(PeerData *peer, bool skipAnimation) {
|
|||||||
void ShareBox::innerSelectedChanged(PeerData *peer, bool checked) {
|
void ShareBox::innerSelectedChanged(PeerData *peer, bool checked) {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
addPeerToMultiSelect(peer);
|
addPeerToMultiSelect(peer);
|
||||||
_select->clearQuery();
|
//_select->clearQuery();
|
||||||
} else {
|
} else {
|
||||||
_select->removeItem(peer->id);
|
_select->removeItem(peer->id);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user