Device user arguments (4)

pull/375/head
f4exb 2019-06-13 07:37:28 +02:00
rodzic d79926e91b
commit 597a526527
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -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()