diff --git a/src/container/vcontainer.cpp b/src/container/vcontainer.cpp index db16f5e60..5328f1a58 100644 --- a/src/container/vcontainer.cpp +++ b/src/container/vcontainer.cpp @@ -774,7 +774,7 @@ void VContainer::UpdateGObject(qint64 id, VGObject* obj) UpdateObject(gObjects, id, obj); } -void VContainer::UpdateDetail(qint64 id, VDetail detail) +void VContainer::UpdateDetail(qint64 id, const VDetail &detail) { Q_ASSERT_X(id > 0, Q_FUNC_INFO, "id <= 0"); details[id] = detail; diff --git a/src/container/vcontainer.h b/src/container/vcontainer.h index a250d2e2c..3db6e1744 100644 --- a/src/container/vcontainer.h +++ b/src/container/vcontainer.h @@ -223,7 +223,7 @@ public: * @param id id of existing detail * @param detail detail */ - void UpdateDetail(qint64 id, VDetail detail); + void UpdateDetail(qint64 id, const VDetail &detail); /** * @brief UpdateStandartTableCell update standart table row by name * @param name name of row diff --git a/src/dialogs/dialogdetail.cpp b/src/dialogs/dialogdetail.cpp index 7051ed1a6..1d57d7505 100644 --- a/src/dialogs/dialogdetail.cpp +++ b/src/dialogs/dialogdetail.cpp @@ -165,6 +165,8 @@ void DialogDetail::setDetails(const VDetail &value) ui.lineEditNameDetail->setText(details.getName()); ui.checkBoxSeams->setChecked(details.getSupplement()); ui.checkBoxClosed->setChecked(details.getClosed()); + ClickedClosed(details.getClosed()); + ClickedSeams(details.getSupplement()); ui.doubleSpinBoxSeams->setValue(details.getWidth()); ui.listWidget->setCurrentRow(0); ui.listWidget->setFocus(Qt::OtherFocusReason);