mirror of https://github.com/procxx/kepka.git
fixed searchInPeer when some search was active already
This commit is contained in:
parent
b09aa49749
commit
621052645c
|
@ -2094,6 +2094,7 @@ void DialogsWidget::onChooseByDrag() {
|
||||||
void DialogsWidget::searchMessages(const QString &query, PeerData *inPeer) {
|
void DialogsWidget::searchMessages(const QString &query, PeerData *inPeer) {
|
||||||
if ((_filter.getLastText() != query) || (inPeer && inPeer != _searchInPeer && inPeer->migrateTo() != _searchInPeer)) {
|
if ((_filter.getLastText() != query) || (inPeer && inPeer != _searchInPeer && inPeer->migrateTo() != _searchInPeer)) {
|
||||||
if (inPeer) {
|
if (inPeer) {
|
||||||
|
onCancelSearch();
|
||||||
_searchInPeer = inPeer->migrateTo() ? inPeer->migrateTo() : inPeer;
|
_searchInPeer = inPeer->migrateTo() ? inPeer->migrateTo() : inPeer;
|
||||||
_searchInMigrated = _searchInPeer ? _searchInPeer->migrateFrom() : 0;
|
_searchInMigrated = _searchInPeer ? _searchInPeer->migrateFrom() : 0;
|
||||||
_inner.searchInPeer(_searchInPeer);
|
_inner.searchInPeer(_searchInPeer);
|
||||||
|
|
Loading…
Reference in New Issue