Address review feedback: parentGroup guard, ELMT_XREF constant, indentation

- Add !parentGroup() guard to stale xref removal in updateXref()
  to prevent deleting xref data that ElementTextItemGroup::updateXref()
  just stored for a grouped text item.
- Replace QStringLiteral("xref") with QETInformation::ELMT_XREF
  in linkelementcommand.cpp and masterelement.cpp.
- Fix indentation in plclinkwidget.cpp.
This commit is contained in:
Kellermorph
2026-09-16 11:49:49 +02:00
parent 9bfe18807f
commit dad6206386
4 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -356,8 +356,8 @@ void PlcLinkWidget::on_m_unlink_pb_clicked()
LinkElementCommand *undo = new LinkElementCommand(m_element);
// Store the current group index so makeLink() can
// restore PLC variables and terminal labels on undo.
// Store the current group index so makeLink() can
// restore PLC variables and terminal labels on undo.
for (Element *elmt : m_element->linkedElements())
{
if (elmt->linkType() == Element::Master)