mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-16 09:31:16 +01:00
2023-10-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdcartslots(1) that caused the color of the start buttons to fail to update correctly when in 'Restart Playout (Loop)' mode. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -92,8 +92,6 @@ RDCartSlot::RDCartSlot(int slotnum,RDRipc *ripc,RDCae *cae,RDStation *station,
|
||||
slot_start_button->setGeometry(0,0,sizeHint().height(),sizeHint().height());
|
||||
slot_start_button->setFont(hugeButtonFont());
|
||||
slot_start_button->setDisabled(true);
|
||||
connect(slot_deck,SIGNAL(stateChanged(int,RDPlayDeck::State)),
|
||||
slot_start_button,SLOT(setState(int,RDPlayDeck::State)));
|
||||
connect(slot_start_button,SIGNAL(clicked()),this,SLOT(startData()));
|
||||
|
||||
//
|
||||
@@ -475,6 +473,7 @@ void RDCartSlot::stateChangedData(int id,RDPlayDeck::State state)
|
||||
switch(state) {
|
||||
case RDPlayDeck::Playing:
|
||||
LogPlayout(state);
|
||||
slot_start_button->setState(RDPlayDeck::Playing);
|
||||
slot_start_button->
|
||||
setEnabled(slot_options->mode()==RDSlotOptions::CartDeckMode);
|
||||
slot_load_button->setDisabled(true);
|
||||
@@ -484,6 +483,7 @@ void RDCartSlot::stateChangedData(int id,RDPlayDeck::State state)
|
||||
case RDPlayDeck::Stopped:
|
||||
case RDPlayDeck::Finished:
|
||||
LogPlayout(state);
|
||||
slot_start_button->setState(RDPlayDeck::Stopped);
|
||||
slot_start_button->
|
||||
setEnabled(slot_options->mode()==RDSlotOptions::CartDeckMode);
|
||||
slot_load_button->setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user