mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Auto-choose first search row in PeerListBox.
This commit is contained in:
parent
aa16bcd604
commit
c79d16a0d6
@ -1362,8 +1362,12 @@ void PeerListContent::setSearchQuery(
|
||||
}
|
||||
|
||||
void PeerListContent::submitted() {
|
||||
if (auto row = getRow(_selected.index)) {
|
||||
if (const auto row = getRow(_selected.index)) {
|
||||
_controller->rowClicked(row);
|
||||
} else if (showingSearch()) {
|
||||
if (const auto row = getRow(RowIndex(0))) {
|
||||
_controller->rowClicked(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user