Fixed crash in SessionsBox when list of sessions is empty.

This commit is contained in:
23rd 2020-10-01 18:09:36 +03:00 committed by John Preston
parent d66debd802
commit 46ce0df832
1 changed files with 3 additions and 0 deletions

View File

@ -179,6 +179,9 @@ void SessionsContent::setupContent() {
}
void SessionsContent::parse(const Api::Authorizations::List &list) {
if (list.empty()) {
return;
}
_data = Full();
for (const auto &auth : list) {
auto entry = Entry(auth);