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) {
|
||||
if (list.empty()) {
|
||||
return;
|
||||
}
|
||||
_data = Full();
|
||||
for (const auto &auth : list) {
|
||||
auto entry = Entry(auth);
|
||||
|
|
Loading…
Reference in a new issue