diff --git a/src/Gui/propertyeditor/PropertyEditor.cpp b/src/Gui/propertyeditor/PropertyEditor.cpp index 6daf4f734a..264c553e11 100644 --- a/src/Gui/propertyeditor/PropertyEditor.cpp +++ b/src/Gui/propertyeditor/PropertyEditor.cpp @@ -233,6 +233,8 @@ void PropertyEditor::onItemActivated ( const QModelIndex & index ) void PropertyEditor::closeEditor (QWidget * editor, QAbstractItemDelegate::EndEditHint hint) { + QTreeView::closeEditor(editor, hint); + if (autoupdate) { App::Document* doc = App::GetApplication().getActiveDocument(); if (doc) { @@ -249,8 +251,6 @@ void PropertyEditor::closeEditor (QWidget * editor, QAbstractItemDelegate::EndEd QModelIndex indexSaved = currentIndex(); FC_LOG("index saved " << indexSaved.row() << ", " << indexSaved.column()); - QTreeView::closeEditor(editor, hint); - QModelIndex lastIndex; while(this->state()!=EditingState) { QModelIndex index;