1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Device user arguments (4)

This commit is contained in:
f4exb 2019-06-13 07:37:28 +02:00
parent d79926e91b
commit 597a526527

View File

@ -143,7 +143,14 @@ void DeviceUserArgsDialog::on_importDevice_clicked(bool checked)
void DeviceUserArgsDialog::on_deleteArgs_clicked(bool checked)
{
(void) checked;
QTreeWidgetItem *deviceItem = ui->argsTree->currentItem();
bool ok;
int sequence = deviceItem->text(1).toInt(&ok);
QString key;
DeviceUserArgs::composeDeviceKey(deviceItem->text(0), sequence, key);
m_argsByDeviceCopy.remove(key);
displayArgsByDevice();
}
void DeviceUserArgsDialog::on_argStringEdit_returnPressed()