summaryrefslogtreecommitdiffstats
path: root/src/languages
diff options
context:
space:
mode:
Diffstat (limited to 'src/languages')
-rw-r--r--src/languages/flowcode.cpp2
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);
}