mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
ElementEditor: in LineEditor::setPart remove redundant calls to StyleEditor::setPart
This commit is contained in:
committed by
Laurent Trinques
parent
dd257c48d9
commit
9d772b4091
@@ -125,7 +125,6 @@ bool LineEditor::setPart(CustomElementPart *new_part)
|
||||
disconnectChangeConnections();
|
||||
}
|
||||
part = nullptr;
|
||||
style_ -> setPart(nullptr);
|
||||
return(true);
|
||||
}
|
||||
if (PartLine *part_line = dynamic_cast<PartLine *>(new_part))
|
||||
@@ -136,7 +135,6 @@ bool LineEditor::setPart(CustomElementPart *new_part)
|
||||
disconnectChangeConnections();
|
||||
}
|
||||
part = part_line;
|
||||
style_ -> setPart(part);
|
||||
updateForm();
|
||||
setUpChangeConnections();
|
||||
return(true);
|
||||
|
||||
Reference in New Issue
Block a user