diff options
author | ronso0 <ronso0@mixxx.org> | 2020-12-27 05:48:01 +0100 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2021-01-06 23:47:59 +0100 |
commit | 8db895bb59f47c3b4859a68bbc3906830754dd78 (patch) | |
tree | cb547e0525633eadb9c322c8b83abb4e9d80566c /src | |
parent | 574302c1aecf02c05bd75830c3c5bcc33f7dd511 (diff) |
Preferences > Sound Hardware: display '---' when no sound device is selected
Diffstat (limited to 'src')
-rw-r--r-- | src/preferences/dialog/dlgprefsounditem.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/preferences/dialog/dlgprefsounditem.cpp b/src/preferences/dialog/dlgprefsounditem.cpp index 8efa2d3c04..043f14e5da 100644 --- a/src/preferences/dialog/dlgprefsounditem.cpp +++ b/src/preferences/dialog/dlgprefsounditem.cpp @@ -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), @@ -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 |