From e7ebea116b82577d861cba0650a80b12900b2e24 Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 11 Feb 2003 21:40:34 +0000 Subject: fixing crash which occured when leaving config dialog --- (limited to 'core') 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 @@ -22,7 +22,7 @@ MailPlugin::MailPlugin() { } MailPlugin::~MailPlugin() { - delete m_widget; + delete (MailPluginWidget*)m_widget; } QString MailPlugin::pluginName() const { 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 @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -46,7 +47,7 @@ public: void refresh(); private: - MailPluginWidget *m_widget; + QGuardedPtr m_widget; }; #endif -- cgit v0.9.0.2