From 8d6e1b42d3b5b8dc376f0979d9f4363d9a6c6970 Mon Sep 17 00:00:00 2001 From: tille Date: Wed, 19 Jun 2002 13:06:57 +0000 Subject: fixed error while sending queue --- (limited to 'noncore/unsupported/mail2') diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp index 03dacae..52ebbdd 100644 --- a/noncore/unsupported/mail2/composer.cpp +++ b/noncore/unsupported/mail2/composer.cpp @@ -164,7 +164,7 @@ void Composer::slotSendMail() void Composer::slotSendQueued() { - + int effSendCount = 0; qDebug("Sending queued messages"); Config cfg( "mailqueue", Config::User ); cfg.setGroup( "Settings" ); @@ -245,12 +245,17 @@ void Composer::slotSendQueued() qDebug("Sending to %s",toAdr.latin1()); SmtpHandler *handler = new SmtpHandler(header, message, accnt ,toAdr); - + effSendCount++; connect(handler, SIGNAL(finished()), SLOT(slotSendQueuedFinished())); connect(handler, SIGNAL(error(const QString &)), SLOT(slotSendQueuedError(const QString &))); connect(handler, SIGNAL(status(const QString &)), status, SLOT(setText(const QString &))); } + if (effSendCount < _toSend) + { + _toSend = effSendCount; + QMessageBox::information(this, tr("Error"), tr("

There was a problem sending some of the queued mails.

"), tr("Ok")); + } } void Composer::slotQueueMail() -- cgit v0.9.0.2