2023-12-15 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcatch(1) that broke play-out of the
	head and tail audition buttons.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-12-15 17:19:24 -05:00
parent af8b711649
commit ca83dfd0ac
3 changed files with 26 additions and 19 deletions

View File

@@ -24562,3 +24562,6 @@
2023-12-15 Fred Gleason <fredg@paravelsystems.com> 2023-12-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed a race in the log machine logic that could cause truncated * Fixed a race in the log machine logic that could cause truncated
play-outs with segue transitions. play-outs with segue transitions.
2023-12-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdcatch(1) that broke play-out of the
head and tail audition buttons.

View File

@@ -146,9 +146,9 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
// CAE Connection // CAE Connection
// //
connect(rda->cae(),SIGNAL(isConnected(bool)),this,SLOT(initData(bool))); connect(rda->cae(),SIGNAL(isConnected(bool)),this,SLOT(initData(bool)));
connect(rda->cae(),SIGNAL(playing(int)),this,SLOT(playedData(int))); connect(rda->cae(),SIGNAL(playing(unsigned)),this,SLOT(playedData(unsigned)));
connect(rda->cae(),SIGNAL(playStopped(int)), connect(rda->cae(),SIGNAL(playStopped(unsigned)),
this,SLOT(playStoppedData(int))); this,SLOT(playStoppedData(unsigned)));
if(!rda->cae()->connectHost(&err_msg)) { if(!rda->cae()->connectHost(&err_msg)) {
QMessageBox::warning(this,"RDCatch - "+tr("Error"),err_msg); QMessageBox::warning(this,"RDCatch - "+tr("Error"),err_msg);
exit(RDCoreApplication::ExitInternalError); exit(RDCoreApplication::ExitInternalError);
@@ -778,8 +778,9 @@ void MainWidget::initData(bool state)
} }
void MainWidget::playedData(int handle) void MainWidget::playedData(unsigned serial)
{ {
if(catch_audition_serial==serial) {
if(head_playing) { if(head_playing) {
catch_head_button->on(); catch_head_button->on();
} }
@@ -788,10 +789,12 @@ void MainWidget::playedData(int handle)
} }
catch_stop_button->off(); catch_stop_button->off();
} }
}
void MainWidget::playStoppedData(int handle) void MainWidget::playStoppedData(unsigned serial)
{ {
if(catch_audition_serial==serial) {
head_playing=false; head_playing=false;
tail_playing=false; tail_playing=false;
catch_head_button->off(); catch_head_button->off();
@@ -799,6 +802,7 @@ void MainWidget::playStoppedData(int handle)
catch_stop_button->on(); catch_stop_button->on();
rda->cae()->unloadPlay(catch_audition_serial); rda->cae()->unloadPlay(catch_audition_serial);
} }
}
void MainWidget::selectionChangedData(const QItemSelection &before, void MainWidget::selectionChangedData(const QItemSelection &before,

View File

@@ -69,8 +69,8 @@ class MainWidget : public RDMainWindow
void tailButtonData(); void tailButtonData();
void stopButtonData(); void stopButtonData();
void initData(bool); void initData(bool);
void playedData(int); void playedData(unsigned serial);
void playStoppedData(int); void playStoppedData(unsigned serial);
void selectionChangedData(const QItemSelection &before, void selectionChangedData(const QItemSelection &before,
const QItemSelection &after); const QItemSelection &after);
void doubleClickedData(const QModelIndex &index); void doubleClickedData(const QModelIndex &index);