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:
Fred Gleason
2023-10-27 14:12:08 -04:00
parent d434fad6f8
commit b8f4f95fcd
3 changed files with 15 additions and 8 deletions

View File

@@ -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);