mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
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:
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user