2022-08-03 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdcatch(1) that could cause a newly added event
	to appear twice in the record list.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-08-03 09:20:56 -04:00
parent fc9aaab81b
commit 96e8b9ba29
2 changed files with 9 additions and 1 deletions

View File

@ -23205,3 +23205,6 @@
that made it impossible to add switcher events in rdcatch(1).
2022-08-01 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.0.0beta3int1.
2022-08-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdcatch(1) that could cause a newly added event
to appear twice in the record list.

View File

@ -462,7 +462,12 @@ void RecordListModel::notificationReceivedData(RDNotification *notify)
if(notify->type()==RDNotification::CatchEventType) {
switch(notify->action()) {
case RDNotification::AddAction:
addRecord(notify->id().toUInt());
if(d_ids.contains(notify->id().toUInt())) {
refresh(notify->id().toUInt());
}
else {
addRecord(notify->id().toUInt());
}
emit updateNextEvents();
break;