2023-06-21 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcatch(1) that caused a phantom event
	entry to appear in the Event List while processing the
	'Start Record Deck' ['RS'] RML.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-06-21 15:43:55 -04:00
parent f36fdc573d
commit b6c49a5296
2 changed files with 8 additions and 1 deletions

View File

@ -24248,3 +24248,7 @@
2023-06-21 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdcatchd(8) that would cause a segfault after
reception of a 'Start Record Deck' ['RS'] RML.
2023-06-21 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdcatch(1) that caused a phantom event
entry to appear in the Event List while processing the
'Start Record Deck' ['RS'] RML.

View File

@ -319,7 +319,6 @@ void RecordListModel::setRecordStatus(const QModelIndex &row,
void RecordListModel::setRecordStatus(unsigned rec_id,RDDeck::Status status)
{
int index=d_ids.indexOf(rec_id);
if(index>=0) {
if(d_statuses.at(index)!=status) {
d_statuses[index]=status;
@ -364,6 +363,10 @@ void RecordListModel::channelCounts(int chan,int *waiting,int *active,
QModelIndex RecordListModel::addRecord(unsigned id)
{
if(id>=RDCATCHD_DYNAMIC_BASE_ID) {
return QModelIndex(); // Don't process dynamic record events!
}
//
// Find the insertion offset
//