From 88eb5dc6b7d1f6d57510f7cabc88863860df8694 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 5 Sep 2007 16:07:56 +0000 Subject: [PATCH] add accessor for the updating state --- src/ui/widget/registered-widget.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/widget/registered-widget.h b/src/ui/widget/registered-widget.h index 7d71165da..3d4dd851b 100644 --- a/src/ui/widget/registered-widget.h +++ b/src/ui/widget/registered-widget.h @@ -17,6 +17,7 @@ #include #include "xml/node.h" +#include "registry.h" class SPUnit; class SPDocument; @@ -49,6 +50,8 @@ public: write_undo = true; } + bool is_updating() {if (_wr) return _wr->isUpdating(); else return false;} + protected: RegisteredWidget() { -- 2.30.2