mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
ElementEditor: in ArcEditor::setPart remove redundant calls to StyleEditor::setPart
This commit is contained in:
committed by
Laurent Trinques
parent
72918a31db
commit
45d1b489c4
@@ -109,7 +109,6 @@ bool ArcEditor::setPart(CustomElementPart *new_part)
|
|||||||
disconnectChangeConnections();
|
disconnectChangeConnections();
|
||||||
|
|
||||||
part = nullptr;
|
part = nullptr;
|
||||||
style_ -> setPart(nullptr);
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,7 +118,6 @@ bool ArcEditor::setPart(CustomElementPart *new_part)
|
|||||||
if (part)
|
if (part)
|
||||||
disconnectChangeConnections();
|
disconnectChangeConnections();
|
||||||
part = part_arc;
|
part = part_arc;
|
||||||
style_ -> setPart(part);
|
|
||||||
updateForm();
|
updateForm();
|
||||||
setUpChangeConnections();
|
setUpChangeConnections();
|
||||||
return(true);
|
return(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user