mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
Fixing alert dock refresh for both new alerts and expired alerts
Fixes #29
This commit is contained in:
parent
704b9e03b9
commit
ed4cc033bb
2 changed files with 64 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue