From 219ef71de845f7d87bcd7c6afb207476c852d14e Mon Sep 17 00:00:00 2001 From: blacksun Date: Sat, 9 May 2015 11:39:44 +0000 Subject: [PATCH] forget file from previous comit git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3947 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/ui/elementpropertieswidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(); } /**