This commit is contained in:
parent
797236fc60
commit
942fda88bf
@ -252,9 +252,14 @@ void DeviceProperties::accept() {
|
||||
ui_->transcode_format->itemData(ui_->transcode_format->currentIndex())
|
||||
.toInt());
|
||||
|
||||
// By default no icon is selected and thus no current item is selected
|
||||
QString icon_name = "";
|
||||
if(ui_->icon->currentItem() != nullptr) {
|
||||
icon_name = ui_->icon->currentItem()->data(Qt::UserRole).toString();
|
||||
}
|
||||
|
||||
manager_->SetDeviceOptions(
|
||||
index_.row(), ui_->name->text(),
|
||||
ui_->icon->currentItem()->data(Qt::UserRole).toString(), mode, format);
|
||||
index_.row(), ui_->name->text(), icon_name, mode,format);
|
||||
}
|
||||
|
||||
void DeviceProperties::OpenDevice() { manager_->Connect(index_.row()); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user