Skip to content

Commit

Permalink
Preferences > Sound Hardware: display ' --- ' when no sound device is…
Browse files Browse the repository at this point in the history
… selected
  • Loading branch information
ronso0 committed Jan 4, 2021
1 parent bb0d712 commit d949940
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/preferences/dialog/dlgprefsounditem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
* @param isInput true if this is representing an AudioInput, false otherwise
* @param index the index of the represented AudioPath, if applicable
*/
DlgPrefSoundItem::DlgPrefSoundItem(QWidget* parent, AudioPathType type,
const QList<SoundDevicePointer>& devices, bool isInput,
unsigned int index)
DlgPrefSoundItem::DlgPrefSoundItem(
QWidget* parent,
AudioPathType type,
const QList<SoundDevicePointer>& devices,
bool isInput,
unsigned int index)
: QWidget(parent),
m_type(type),
m_index(index),
Expand All @@ -27,7 +30,8 @@ DlgPrefSoundItem::DlgPrefSoundItem(QWidget* parent, AudioPathType type,
setupUi(this);
typeLabel->setText(AudioPath::getTrStringFromType(type, index));

deviceComboBox->addItem(tr("None"), QVariant::fromValue(SoundDeviceId()));
deviceComboBox->addItem(SoundManagerConfig::kEmptyComboBox,
QVariant::fromValue(SoundDeviceId()));

// Set the focus policy for QComboBoxes (and wide QDoubleSpinBoxes) and
// connect them to the custom event filter below so they don't accept focus
Expand Down

0 comments on commit d949940

Please sign in to comment.