2022-09-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdairplay(1) that caused the audio cue
	transport buttons to be continuously grayed-out.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-09-27 15:26:04 -04:00
parent 8ac95545f1
commit 09b3d4c79d
2 changed files with 13 additions and 3 deletions

View File

@ -23396,3 +23396,6 @@
2022-09-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'Edit Event' dialog in rdairplay(1) that made
the Play button appear to be grayed-out even when it was active.
2022-09-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdairplay(1) that caused the audio cue
transport buttons to be continuously grayed-out.

View File

@ -2,7 +2,7 @@
//
// A widget to select a Rivendell Cart.
//
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -112,8 +112,8 @@ RDCartDialog::RDCartDialog(QString *filter,QString *group,QString *schedcode,
cart_player=
new RDSimplePlayer(rda->cae(),rda->ripc(),rda->station()->cueCard(),rda->station()->cuePort(),
rda->station()->cueStartCart(),rda->station()->cueStopCart(),this);
cart_player->playButton()->setDisabled(true);
cart_player->stopButton()->setDisabled(true);
// cart_player->playButton()->setDisabled(true);
// cart_player->stopButton()->setDisabled(true);
cart_player->stopButton()->setOnColor(Qt::red);
}
@ -241,6 +241,13 @@ void RDCartDialog::selectionChangedData(const QItemSelection &before,
{
QModelIndexList rows=cart_cart_view->selectionModel()->selectedRows();
if(rows.size()==1) {
cart_player->setCart(cart_cart_model->cartNumber(rows.at(0)));
cart_player->playButton()->
setEnabled(cart_cart_model->cartType(rows.at(0))==RDCart::Audio);
cart_player->stopButton()->
setEnabled(cart_cart_model->cartType(rows.at(0))==RDCart::Audio);
}
cart_ok_button->setEnabled(rows.size()==1);
}