diff options
Diffstat (limited to 'src/languages/flowcode.cpp')
-rw-r--r-- | src/languages/flowcode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/languages/flowcode.cpp b/src/languages/flowcode.cpp index 9fad28d..b557c59 100644 --- a/src/languages/flowcode.cpp +++ b/src/languages/flowcode.cpp @@ -444,7 +444,7 @@ void FlowCode::tidyCode() void FlowCode::addSubroutine( FlowPart *part ) { - if ( !part || m_subroutines.tqcontains(part) || part->tqparentItem() || !dynamic_cast<FlowContainer*>(part) ) return; + if ( !part || m_subroutines.tqcontains(part) || part->parentItem() || !dynamic_cast<FlowContainer*>(part) ) return; m_subroutines.append(part); } |