From 19ca8d1eebb8e531a4e95cb072a96710fae47542 Mon Sep 17 00:00:00 2001 From: sbh Date: Fri, 5 Sep 2014 12:01:13 +0400 Subject: [PATCH] Hotfix for apply button in the property pannel. --- src/XGUI/XGUI_OperationMgr.cpp | 1 + src/XGUI/XGUI_OperationMgr.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index 88e625e36..53f324b40 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -152,6 +152,7 @@ bool XGUI_OperationMgr::canStopOperation() void XGUI_OperationMgr::onCommitOperation() { ModuleBase_Operation* anOperation = currentOperation(); + anOperation->onWidgetActivated(NULL); if (anOperation) anOperation->commit(); } diff --git a/src/XGUI/XGUI_OperationMgr.h b/src/XGUI/XGUI_OperationMgr.h index 6e55108e3..f363da6b5 100644 --- a/src/XGUI/XGUI_OperationMgr.h +++ b/src/XGUI/XGUI_OperationMgr.h @@ -17,10 +17,10 @@ class QKeyEvent; /**\class XGUI_OperationMgr * \ingroup GUI - * \brief Operation manager. Servers to manupulate to the workshop operations. Contains a stack - * of started operations. In simple case, if only one operration is started, the stack contains + * \brief Operation manager. Servers to manipulate to the workshop operations. Contains a stack + * of started operations. In simple case, if only one operation is started, the stack contains * one operation. It is possible for some kind of operations to start them above already - * started one. In that case, the previous active operation becames suspended, a new one - active. + * started one. In that case, the previous active operation becomes suspended, a new one - active. * The new operation is added to the top of the stack. Then it is finished, it is removed from * the stack and the previous operation is activated. */ -- 2.39.2