mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
- static_cast because it is a condition that it is PartTerminal
This commit is contained in:
committed by
Laurent Trinques
parent
37cc326a46
commit
4abf1c4f2e
@@ -106,7 +106,7 @@ bool TerminalEditor::setPart(CustomElementPart* new_part)
|
||||
m_part = nullptr;
|
||||
return(true);
|
||||
}
|
||||
if (PartTerminal *part_terminal = dynamic_cast<PartTerminal *>(new_part))
|
||||
if (PartTerminal *part_terminal = static_cast<PartTerminal *>(new_part))
|
||||
{
|
||||
if(m_part == part_terminal) return true;
|
||||
if (m_part)
|
||||
|
||||
Reference in New Issue
Block a user