diff --git a/src/Gui/Widgets.cpp b/src/Gui/Widgets.cpp index 0326aeaa8f..b760d2da4e 100644 --- a/src/Gui/Widgets.cpp +++ b/src/Gui/Widgets.cpp @@ -1438,8 +1438,10 @@ ExpLineEdit::ExpLineEdit(QWidget* parent, bool expressionOnly) bool ExpLineEdit::apply(const std::string& propName) { if (!ExpressionBinding::apply(propName)) { - QString val = QString::fromUtf8(Base::Interpreter().strToPython(text().toUtf8()).c_str()); - Gui::Command::doCommand(Gui::Command::Doc, "%s = \"%s\"", propName.c_str(), val.constData()); + if(!autoClose) { + QString val = QString::fromUtf8(Base::Interpreter().strToPython(text().toUtf8()).c_str()); + Gui::Command::doCommand(Gui::Command::Doc, "%s = \"%s\"", propName.c_str(), val.constData()); + } return true; } else