-rw-r--r-- | core/pim/today/plugins/mail/mailplugin.cpp | 2 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/mailplugin.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/today/plugins/mail/mailplugin.cpp b/core/pim/today/plugins/mail/mailplugin.cpp index a37d506..2a2efd2 100644 --- a/core/pim/today/plugins/mail/mailplugin.cpp +++ b/core/pim/today/plugins/mail/mailplugin.cpp @@ -23,5 +23,5 @@ MailPlugin::MailPlugin() { MailPlugin::~MailPlugin() { - delete m_widget; + delete (MailPluginWidget*)m_widget; } diff --git a/core/pim/today/plugins/mail/mailplugin.h b/core/pim/today/plugins/mail/mailplugin.h index 67fac0c..a0f009b 100644 --- a/core/pim/today/plugins/mail/mailplugin.h +++ b/core/pim/today/plugins/mail/mailplugin.h @@ -21,4 +21,5 @@ #include <qstring.h> #include <qwidget.h> +#include <qguardedptr.h> #include <opie/tododb.h> @@ -47,5 +48,5 @@ public: private: - MailPluginWidget *m_widget; + QGuardedPtr<MailPluginWidget> m_widget; }; |