mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
ElementEditor: in PolygonEditor::setPart remove redundant calls to StyleEditor::setPart
This commit is contained in:
committed by
Laurent Trinques
parent
dd70637408
commit
f8240558a0
@@ -80,7 +80,6 @@ bool PolygonEditor::setPart(CustomElementPart *new_part)
|
||||
disconnectChangeConnections();
|
||||
}
|
||||
m_part = nullptr;
|
||||
m_style -> setPart(nullptr);
|
||||
return(true);
|
||||
}
|
||||
if (PartPolygon *part_polygon = dynamic_cast<PartPolygon *>(new_part))
|
||||
@@ -91,7 +90,6 @@ bool PolygonEditor::setPart(CustomElementPart *new_part)
|
||||
disconnectChangeConnections();
|
||||
}
|
||||
m_part = part_polygon;
|
||||
m_style -> setPart(m_part);
|
||||
updateForm();
|
||||
setUpChangeConnections();
|
||||
return(true);
|
||||
|
||||
Reference in New Issue
Block a user