diff --git a/src/Gui/ExpressionCompleter.cpp b/src/Gui/ExpressionCompleter.cpp index 66eeb71ff..c98b6b9a7 100644 --- a/src/Gui/ExpressionCompleter.cpp +++ b/src/Gui/ExpressionCompleter.cpp @@ -13,6 +13,7 @@ #include #include #include "ExpressionCompleter.h" +#include Q_DECLARE_METATYPE(App::ObjectIdentifier); @@ -125,6 +126,14 @@ void ExpressionCompleter::createModelForDocumentObject(const DocumentObject * do std::vector::const_iterator pi = props.begin(); while (pi != props.end()) { + + // Skip all types of links + if ((*pi)->isDerivedFrom(App::PropertyLink::getClassTypeId()) || + (*pi)->isDerivedFrom(App::PropertyLinkSub::getClassTypeId())) { + ++pi; + continue; + } + createModelForPaths(*pi, parent); ++pi; }