diff --git a/sources/ui/elementpropertieswidget.cpp b/sources/ui/elementpropertieswidget.cpp index 9526d5797..78c6a3c6d 100644 --- a/sources/ui/elementpropertieswidget.cpp +++ b/sources/ui/elementpropertieswidget.cpp @@ -54,8 +54,8 @@ void ElementPropertiesWidget::apply() QList undo_list; foreach (PropertiesEditorWidget *pew, m_list_editor) - if (pew->associatedUndo()) - undo_list << pew->associatedUndo(); + if (QUndoCommand *undo = pew->associatedUndo()) + undo_list << undo; if (undo_list.isEmpty()) return; @@ -66,6 +66,9 @@ void ElementPropertiesWidget::apply() stack.beginMacro(str); foreach(QUndoCommand *uc, undo_list) stack.push(uc); stack.endMacro(); + + foreach(PropertiesEditorWidget *pew, m_list_editor) + pew->updateUi(); } /**