-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/mainwindow.h | 1 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 5 | ||||
-rw-r--r-- | noncore/net/mail/opiemail.h | 1 |
4 files changed, 11 insertions, 1 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index d2e887b..e16f853 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp @@ -81,7 +81,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) editSettings->addTo( settingsMenu ); connect( editSettings, SIGNAL( activated() ), SLOT( slotEditSettings() ) ); - editAccounts = new QAction( tr( "Configure accounts" ), QIconSet( Resource::loadPixmap("SettingsIcon") ) , + editAccounts = new QAction( tr( "Configure accounts" ), QIconSet( Resource::loadPixmap("mail/editaccounts") ) , 0, 0, this ); editAccounts->addTo( settingsMenu ); @@ -131,6 +131,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); } +MainWindow::~MainWindow() +{ +} void MainWindow::slotAdjustLayout() { diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h index 0e077f6..15d216a 100644 --- a/noncore/net/mail/mainwindow.h +++ b/noncore/net/mail/mainwindow.h @@ -19,6 +19,7 @@ class MainWindow : public QMainWindow public: MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); + virtual ~MainWindow(); public slots: virtual void slotAdjustColumns(); diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index fcd48e2..c888708 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp @@ -30,6 +30,11 @@ OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) } +OpieMail::~OpieMail() +{ + if (settings) delete settings; +} + void OpieMail::appMessage(const QCString &msg, const QByteArray &data) { // copied from old mail2 diff --git a/noncore/net/mail/opiemail.h b/noncore/net/mail/opiemail.h index ebed5d8..69b8d43 100644 --- a/noncore/net/mail/opiemail.h +++ b/noncore/net/mail/opiemail.h @@ -11,6 +11,7 @@ class OpieMail : public MainWindow public: OpieMail( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); + virtual ~OpieMail(); static QString appName() { return QString::fromLatin1("opiemail"); } public slots: |