author | harlekin <harlekin> | 2003-02-11 21:40:34 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-02-11 21:40:34 (UTC) |
commit | e7ebea116b82577d861cba0650a80b12900b2e24 (patch) (unidiff) | |
tree | 95191b284770bc8da81d804cec8b309916de5d73 /core/pim | |
parent | 39f9441dabcb094be258240f7ec3c53ed038133e (diff) | |
download | opie-e7ebea116b82577d861cba0650a80b12900b2e24.zip opie-e7ebea116b82577d861cba0650a80b12900b2e24.tar.gz opie-e7ebea116b82577d861cba0650a80b12900b2e24.tar.bz2 |
fixing crash which occured when leaving config dialog
-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 | |||
@@ -22,7 +22,7 @@ MailPlugin::MailPlugin() { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | MailPlugin::~MailPlugin() { | 24 | MailPlugin::~MailPlugin() { |
25 | delete m_widget; | 25 | delete (MailPluginWidget*)m_widget; |
26 | } | 26 | } |
27 | 27 | ||
28 | QString MailPlugin::pluginName() const { | 28 | 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 @@ | |||
20 | 20 | ||
21 | #include <qstring.h> | 21 | #include <qstring.h> |
22 | #include <qwidget.h> | 22 | #include <qwidget.h> |
23 | #include <qguardedptr.h> | ||
23 | 24 | ||
24 | #include <opie/tododb.h> | 25 | #include <opie/tododb.h> |
25 | #include <opie/oclickablelabel.h> | 26 | #include <opie/oclickablelabel.h> |
@@ -46,7 +47,7 @@ public: | |||
46 | void refresh(); | 47 | void refresh(); |
47 | 48 | ||
48 | private: | 49 | private: |
49 | MailPluginWidget *m_widget; | 50 | QGuardedPtr<MailPluginWidget> m_widget; |
50 | }; | 51 | }; |
51 | 52 | ||
52 | #endif | 53 | #endif |