From: stv Date: Thu, 12 Jan 2006 08:49:24 +0000 (+0000) Subject: Actions can be removed before QtxActionMgr destructor. Guarded pointers were used. X-Git-Tag: T_Before_Join_BR-D5-38-2003~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ba4da3ee8dca88e020b6c1eb7cb8bf4250b2200;p=modules%2Fgui.git Actions can be removed before QtxActionMgr destructor. Guarded pointers were used. --- diff --git a/src/Qtx/QtxActionMgr.h b/src/Qtx/QtxActionMgr.h index 4cd9f2e38..60fc342c0 100644 --- a/src/Qtx/QtxActionMgr.h +++ b/src/Qtx/QtxActionMgr.h @@ -26,6 +26,7 @@ #include #include +#include class QAction; class QDomNode; @@ -81,7 +82,8 @@ protected: int generateId() const; private: - typedef QMap ActionMap; + typedef QGuardedPtr ActionPtr; + typedef QMap ActionMap; private: bool myUpdate;