-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 @@ -89,20 +89,21 @@ void OpieMail::slotSendQueued() selectsmtp selsmtp; selsmtp.setSelectionlist(&smtpList); selsmtp.showMaximized(); if (selsmtp.exec()==QDialog::Accepted) { smtp = selsmtp.selected_smtp(); } } if (smtp) { - SMTPwrapper * wrap = new SMTPwrapper(settings); - if ( wrap->flushOutbox(smtp) ) { + SMTPwrapper * wrap = new SMTPwrapper(smtp); + if ( wrap->flushOutbox() ) { QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); } + delete wrap; } } void OpieMail::slotSearchMails() { qDebug( "Search Mails" ); } |