Diffstat (limited to 'noncore/net/mail/libmailwrapper/smtpwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/smtpwrapper.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/noncore/net/mail/libmailwrapper/smtpwrapper.cpp b/noncore/net/mail/libmailwrapper/smtpwrapper.cpp index 53c0af5..770e2b8 100644 --- a/noncore/net/mail/libmailwrapper/smtpwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/smtpwrapper.cpp | |||
@@ -527,3 +527,3 @@ void SMTPwrapper::progress( size_t current, size_t maximum ) | |||
527 | SMTPwrapper::sendProgress->setSingleMail(current, maximum ); | 527 | SMTPwrapper::sendProgress->setSingleMail(current, maximum ); |
528 | qDebug("%u of %u",current,maximum); | 528 | qApp->processEvents(); |
529 | } | 529 | } |
@@ -654,5 +654,5 @@ void SMTPwrapper::sendMail(const Mail&mail,bool later ) | |||
654 | sendProgress = new progressMailSend(); | 654 | sendProgress = new progressMailSend(); |
655 | sendProgress->showMaximized(); | 655 | // sendProgress->showMaximized(); |
656 | sendProgress->show(); | 656 | sendProgress->show(); |
657 | qApp->processEvents(10); | 657 | sendProgress->setMaxMails(1); |
658 | smtpSend( mimeMail,later,smtp); | 658 | smtpSend( mimeMail,later,smtp); |
@@ -715,2 +715,7 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp) | |||
715 | mailsToSend.setAutoDelete(false); | 715 | mailsToSend.setAutoDelete(false); |
716 | sendProgress = new progressMailSend(); | ||
717 | // sendProgress->showMaximized(); | ||
718 | sendProgress->show(); | ||
719 | sendProgress->setMaxMails(mailsToSend.count()); | ||
720 | |||
716 | while (mailsToSend.count()>0) { | 721 | while (mailsToSend.count()>0) { |
@@ -723,3 +728,7 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp) | |||
723 | mailsToSend.removeFirst(); | 728 | mailsToSend.removeFirst(); |
729 | sendProgress->setCurrentMails(mailsToRemove.count()); | ||
724 | } | 730 | } |
731 | sendProgress->hide(); | ||
732 | delete sendProgress; | ||
733 | sendProgress = 0; | ||
725 | wrap->deleteMails(mbox,mailsToRemove); | 734 | wrap->deleteMails(mbox,mailsToRemove); |