Diffstat (limited to 'noncore/net/mail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index ea0019d..0795436 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp | |||
@@ -91,16 +91,17 @@ void OpieMail::slotSendQueued() | |||
91 | selsmtp.showMaximized(); | 91 | selsmtp.showMaximized(); |
92 | if (selsmtp.exec()==QDialog::Accepted) { | 92 | if (selsmtp.exec()==QDialog::Accepted) { |
93 | smtp = selsmtp.selected_smtp(); | 93 | smtp = selsmtp.selected_smtp(); |
94 | } | 94 | } |
95 | } | 95 | } |
96 | if (smtp) { | 96 | if (smtp) { |
97 | SMTPwrapper * wrap = new SMTPwrapper(settings); | 97 | SMTPwrapper * wrap = new SMTPwrapper(smtp); |
98 | if ( wrap->flushOutbox(smtp) ) { | 98 | if ( wrap->flushOutbox() ) { |
99 | QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); | 99 | QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); |
100 | } | 100 | } |
101 | delete wrap; | ||
101 | } | 102 | } |
102 | } | 103 | } |
103 | 104 | ||
104 | void OpieMail::slotSearchMails() | 105 | void OpieMail::slotSearchMails() |
105 | { | 106 | { |
106 | qDebug( "Search Mails" ); | 107 | qDebug( "Search Mails" ); |