mirror of https://github.com/procxx/kepka.git
Fix crash in contacts list box global search.
Regression was introduced in f7359093b4
.
This commit is contained in:
parent
ad41a81b66
commit
c2a1cc2ae8
|
@ -329,7 +329,10 @@ void ContactsBoxController::checkForEmptyRows() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<PeerListRow> ContactsBoxController::createSearchRow(not_null<PeerData*> peer) {
|
std::unique_ptr<PeerListRow> ContactsBoxController::createSearchRow(not_null<PeerData*> peer) {
|
||||||
return createRow(peer->asUser());
|
if (auto user = peer->asUser()) {
|
||||||
|
return createRow(user);
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContactsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
void ContactsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
||||||
|
|
Loading…
Reference in New Issue