From 1ba4da3ee8dca88e020b6c1eb7cb8bf4250b2200 Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 12 Jan 2006 08:49:24 +0000 Subject: [PATCH] Actions can be removed before QtxActionMgr destructor. Guarded pointers were used. --- src/Qtx/QtxActionMgr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2