-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 @@ -21,9 +21,9 @@ MailPlugin::MailPlugin() { m_widget = 0l; } MailPlugin::~MailPlugin() { - delete m_widget; + delete (MailPluginWidget*)m_widget; } QString MailPlugin::pluginName() const { return QObject::tr( "Mail plugin" ); 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 @@ -19,8 +19,9 @@ #define MAIL_PLUGIN_H #include <qstring.h> #include <qwidget.h> +#include <qguardedptr.h> #include <opie/tododb.h> #include <opie/oclickablelabel.h> @@ -45,8 +46,8 @@ public: bool excludeFromRefresh() const; void refresh(); private: - MailPluginWidget *m_widget; + QGuardedPtr<MailPluginWidget> m_widget; }; #endif |