Fixing alert dock refresh for both new alerts and expired alerts

Fixes #29
This commit is contained in:
Dan Paulat 2023-02-28 22:10:34 -06:00
parent 704b9e03b9
commit ed4cc033bb
2 changed files with 64 additions and 5 deletions

View file

@ -310,7 +310,8 @@ void AlertModel::HandleAlert(const types::TextEventKey& alertKey,
// Update row
if (!p->textEventKeys_.contains(alertKey))
{
beginInsertRows(QModelIndex(), 0, 0);
int newIndex = p->textEventKeys_.size();
beginInsertRows(QModelIndex(), newIndex, newIndex);
p->textEventKeys_.push_back(alertKey);
endInsertRows();
}