fix crash when marking many articles as read/unread
This commit is contained in:
parent
a9b0b1ef95
commit
c29c5ff4eb
1 changed files with 5 additions and 2 deletions
|
@ -1028,8 +1028,11 @@ bool ServiceRoot::onAfterSetMessagesRead(RootItem* selected_item,
|
||||||
|
|
||||||
for (const QString& lbl : lbls) {
|
for (const QString& lbl : lbls) {
|
||||||
Label* l = labelsNode()->labelById(lbl);
|
Label* l = labelsNode()->labelById(lbl);
|
||||||
l->updateCounts(false);
|
|
||||||
to_update << l;
|
if (l != nullptr) {
|
||||||
|
l->updateCounts(false);
|
||||||
|
to_update << l;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue