2022-04-30 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcatch(1) that caused the Next Event
	indications to fail to be updated on remote instances of rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-04-30 16:27:08 -04:00
parent 7b4c3f1b48
commit 76395f10fa
4 changed files with 11 additions and 1 deletions

View File

@@ -342,6 +342,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
this,
SLOT(selectionChangedData(const QItemSelection &,
const QItemSelection &)));
connect(catch_recordings_model,SIGNAL(updateNextEvents()),
this,SLOT(nextEventData()));
catch_recordings_view->resizeColumnsToContents();
//
@@ -451,7 +453,6 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
if(ShowNextEvents(current_date.dayOfWeek(),current_time,&next_time)>0) {
catch_next_timer->start(current_time.msecsTo(next_time));
}
nextEventData();
//
// Silly Resize Workaround

View File

@@ -463,14 +463,17 @@ void RecordListModel::notificationReceivedData(RDNotification *notify)
switch(notify->action()) {
case RDNotification::AddAction:
addRecord(notify->id().toUInt());
emit updateNextEvents();
break;
case RDNotification::ModifyAction:
refresh(notify->id().toUInt());
emit updateNextEvents();
break;
case RDNotification::DeleteAction:
removeRecord(notify->id().toUInt());
emit updateNextEvents();
break;
case RDNotification::NoAction:

View File

@@ -65,6 +65,9 @@ class RecordListModel : public QAbstractTableModel
bool refresh(unsigned id);
void setFilterSql(const QString &sql);
signals:
void updateNextEvents();
public slots:
void notificationReceivedData(RDNotification *notify);