You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMDF_ActionParameter* pactionparam = new (CMDF_ActionParameter);
298
+
if (nullptr == pactionparam) {
299
+
return;
300
+
}
301
+
302
+
adddlg:
303
+
CDlgMdfDmActionParam dlg(this);
304
+
dlg.initDialogData(m_pmdf, pactionparam);
305
+
// If DM is level I only offset 0 is allowd
306
+
if (VSCP_LEVEL1 == m_pmdf->getLevel()) {
307
+
dlg.setOffsetReadOnly();
308
+
}
309
+
if (QDialog::Accepted == dlg.exec()) {
310
+
if (!m_paction->addActionParam(pactionparam)) {
311
+
QMessageBox::warning(this, tr("MDF add new action parameter"), tr("Action parameter with offset %1 is already define. Must be unique.").arg(pactionparam->getOffset()));
if (!m_paction->addActionParam(pactionparamnew)) {
361
+
QMessageBox::warning(this, tr("MDF add new action parameter"), tr("Action parameter with offset %1 is already define. Must be unique.").arg(pactionparam->getOffset()));
if (QMessageBox::No == QMessageBox::question(this,
392
+
tr("MDF delete action parameter"),
393
+
tr("Delete action parameter with offset %1.").arg(pactionparam->getOffset()))) {
394
+
return;
395
+
}
396
+
397
+
if (!m_paction->deleteActionParam(pactionparam)) {
398
+
QMessageBox::warning(this, tr("MDF add new action parameter"), tr("Failed to remove action parameter with offset %1.").arg(pactionparam->getOffset()));
0 commit comments