mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +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();
|
disconnectChangeConnections();
|
||||||
}
|
}
|
||||||
m_part = nullptr;
|
m_part = nullptr;
|
||||||
m_style -> setPart(nullptr);
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
if (PartPolygon *part_polygon = dynamic_cast<PartPolygon *>(new_part))
|
if (PartPolygon *part_polygon = dynamic_cast<PartPolygon *>(new_part))
|
||||||
@@ -91,7 +90,6 @@ bool PolygonEditor::setPart(CustomElementPart *new_part)
|
|||||||
disconnectChangeConnections();
|
disconnectChangeConnections();
|
||||||
}
|
}
|
||||||
m_part = part_polygon;
|
m_part = part_polygon;
|
||||||
m_style -> setPart(m_part);
|
|
||||||
updateForm();
|
updateForm();
|
||||||
setUpChangeConnections();
|
setUpChangeConnections();
|
||||||
return(true);
|
return(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user