2022-11-11 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcatch(1) that marker modification made
	via the mouse menu to fail to notify remote instances of changes.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-11 12:35:20 -05:00
parent 8f00a09364
commit 15ef582e07
4 changed files with 17 additions and 2 deletions

View File

@@ -76,6 +76,9 @@ void CatchTableView::editAudioMenuData()
if(d_marker_dialog->
exec(RDCut::cartNumber(cutname),RDCut::cutNumber(cutname))) {
rdcart->updateLength();
mod->refresh(mod->index(d_mouse_row,0));
SendNotification(RDNotification::ModifyAction,
mod->recordId(mod->index(d_mouse_row,0)));
}
delete rdcart;
@@ -95,3 +98,13 @@ void CatchTableView::mousePressEvent(QMouseEvent *e)
}
QTableView::mousePressEvent(e);
}
void CatchTableView::SendNotification(RDNotification::Action action,
unsigned rec_id) const
{
RDNotification *notify=
new RDNotification(RDNotification::CatchEventType,action,rec_id);
rda->ripc()->sendNotification(*notify);
delete notify;
}

View File

@@ -42,6 +42,7 @@ class CatchTableView : public RDTableView
void mousePressEvent(QMouseEvent *e);
private:
void SendNotification(RDNotification::Action action,unsigned rec_id) const;
QMenu *d_mouse_menu;
QAction *d_edit_audio_action;
QString catch_cutname;

View File

@@ -298,8 +298,6 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
}
delete q;
QTime start=QTime::currentTime();
//
// Cart List
//