mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
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:
@@ -23396,3 +23396,6 @@
|
|||||||
2022-09-27 Fred Gleason <fredg@paravelsystems.com>
|
2022-09-27 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Fixed a bug in the 'Edit Event' dialog in rdairplay(1) that made
|
* 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.
|
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.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// A widget to select a Rivendell Cart.
|
// 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
|
// 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
|
// 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=
|
cart_player=
|
||||||
new RDSimplePlayer(rda->cae(),rda->ripc(),rda->station()->cueCard(),rda->station()->cuePort(),
|
new RDSimplePlayer(rda->cae(),rda->ripc(),rda->station()->cueCard(),rda->station()->cuePort(),
|
||||||
rda->station()->cueStartCart(),rda->station()->cueStopCart(),this);
|
rda->station()->cueStartCart(),rda->station()->cueStopCart(),this);
|
||||||
cart_player->playButton()->setDisabled(true);
|
// cart_player->playButton()->setDisabled(true);
|
||||||
cart_player->stopButton()->setDisabled(true);
|
// cart_player->stopButton()->setDisabled(true);
|
||||||
cart_player->stopButton()->setOnColor(Qt::red);
|
cart_player->stopButton()->setOnColor(Qt::red);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,6 +241,13 @@ void RDCartDialog::selectionChangedData(const QItemSelection &before,
|
|||||||
{
|
{
|
||||||
QModelIndexList rows=cart_cart_view->selectionModel()->selectedRows();
|
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);
|
cart_ok_button->setEnabled(rows.size()==1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user