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 | |||
@@ -85,28 +85,29 @@ void OpieMail::slotSendQueued() | |||
85 | if (smtpList.count()==1) { | 85 | if (smtpList.count()==1) { |
86 | smtp = smtpList.at(0); | 86 | smtp = smtpList.at(0); |
87 | } else { | 87 | } else { |
88 | smtp = 0; | 88 | smtp = 0; |
89 | selectsmtp selsmtp; | 89 | selectsmtp selsmtp; |
90 | selsmtp.setSelectionlist(&smtpList); | 90 | selsmtp.setSelectionlist(&smtpList); |
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" ); |
107 | } | 108 | } |
108 | 109 | ||
109 | void OpieMail::slotEditSettings() | 110 | void OpieMail::slotEditSettings() |
110 | { | 111 | { |
111 | SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); | 112 | SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); |
112 | settingsDialog.showMaximized(); | 113 | settingsDialog.showMaximized(); |