mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-04 20:40:00 +01:00
Fix loading custom device
This commit is contained in:
parent
3a02ece169
commit
c8dfb9b0db
@ -316,7 +316,7 @@ void BackendSettingsPage::Load_Device(QString output, QVariant device) {
|
||||
bool found(false);
|
||||
for (int i = 0; i < ui_->combobox_device->count(); ++i) {
|
||||
QVariant d = ui_->combobox_device->itemData(i).value<QVariant>();
|
||||
if (df_device.value == d) {
|
||||
if (df_device.value.isValid() && df_device.value == d) {
|
||||
ui_->combobox_device->setCurrentIndex(i);
|
||||
found = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user