mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user