mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 23:43:06 +02:00
Fixed crash in SessionsBox when list of sessions is empty.
This commit is contained in:
parent
d66debd802
commit
46ce0df832
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ void SessionsContent::setupContent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SessionsContent::parse(const Api::Authorizations::List &list) {
|
void SessionsContent::parse(const Api::Authorizations::List &list) {
|
||||||
|
if (list.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
_data = Full();
|
_data = Full();
|
||||||
for (const auto &auth : list) {
|
for (const auto &auth : list) {
|
||||||
auto entry = Entry(auth);
|
auto entry = Entry(auth);
|
||||||
|
|
Loading…
Add table
Reference in a new issue