Permalink
Browse files

vc/cue list: fix side fader input autodetection

  • Loading branch information...
mcallegari committed Dec 16, 2018
1 parent 1454aaf commit 3c59ec7f2a6cdc35cbbb6cf7da671e4c9eda18f7
Showing with 1 addition and 10 deletions.
  1. +1 −9 ui/src/virtualconsole/vccuelistproperties.cpp
  2. +0 −1 ui/src/virtualconsole/vccuelistproperties.h
@@ -115,14 +115,12 @@ VCCueListProperties::VCCueListProperties(VCCueList* cueList, Doc* doc)
m_crossFadeRadio->setChecked(true);

m_crossfadeInputWidget = new InputSelectionWidget(m_doc, this);
m_crossfadeInputWidget->setTitle(tr("Left Fader"));
m_crossfadeInputWidget->setTitle(tr("External Input"));
m_crossfadeInputWidget->setKeyInputVisibility(false);
m_crossfadeInputWidget->setInputSource(m_cueList->inputSource(VCCueList::sideFaderInputSourceId));
m_crossfadeInputWidget->setWidgetPage(m_cueList->page());
m_crossfadeInputWidget->show();
m_crossFadeLayout->addWidget(m_crossfadeInputWidget);
connect(m_crossfadeInputWidget, SIGNAL(autoDetectToggled(bool)),
this, SLOT(slotCFAutoDetectionToggled(bool)));

/* Playback layout */
connect(m_play_stop_pause, SIGNAL(clicked(bool)), this, SLOT(slotPlaybackLayoutChanged()));
@@ -188,12 +186,6 @@ void VCCueListProperties::slotTabChanged()
m_crossfadeInputWidget->stopAutoDetection();
}

void VCCueListProperties::slotCFAutoDetectionToggled(bool checked)
{
if (checked == true && m_crossfadeInputWidget->isAutoDetecting())
m_crossfadeInputWidget->stopAutoDetection();
}

/****************************************************************************
* Cues
****************************************************************************/
@@ -49,7 +49,6 @@ class VCCueListProperties : public QDialog, public Ui_VCCueListProperties
public slots:
void accept();
void slotTabChanged();
void slotCFAutoDetectionToggled(bool checked);

protected:
VCCueList* m_cueList;

0 comments on commit 3c59ec7

Please sign in to comment.