Altered calls to processEvents()

Not very happing with calling processEvents() at all. It was causing
problems when sending receipts while checking mail.

Guess until we get non-blocking sending implemented this is the way it's
going to have to be.

svn path=/trunk/kdenetwork/kmail/; revision=55816
wilder-work
Don Sanders 26 years ago
parent 328f68402c
commit a7fbdfb02f
  1. 9
      kmsender.cpp

@ -289,6 +289,7 @@ void KMSender::doSendMsg()
label->setText(i18n("Initiating sender process..."));
label->resize(400, label->sizeHint().height());
labelDialog->show();
kapp->processEvents(50); // Not sure this is safe -sanders
// Run the precommand if there is one
setStatusMsg(i18n(QString("Executing precommand ") + mPrecommand));
@ -297,7 +298,6 @@ void KMSender::doSendMsg()
KMessageBox::error(0, QString("Couldn't execute precommand:\n") + mPrecommand);
}
//kapp->processEvents();
setStatusMsg(i18n("Initiating sender process..."));
if (!mSendProc->start())
{
@ -386,7 +386,6 @@ void KMSender::slotIdle()
}
}
//-----------------------------------------------------------------------------
void KMSender::setMethod(Method aMethod)
{
@ -509,7 +508,7 @@ const QString KMSendProc::prepareStr(const QString aStr, bool toCRLF)
void KMSendProc::statusMsg(const QString& aMsg)
{
if (mSender) mSender->setStatusMsg(aMsg);
kapp->processEvents(500);
kapp->processEvents(50); // Not sure this is safe -sanders
}
//-----------------------------------------------------------------------------
@ -717,7 +716,7 @@ bool KMSendSMTP::start(void)
KMessageBox::information(0,str);
return FALSE;
}
kapp->processEvents(1000);
kapp->processEvents(50); // not sure this is safe -sanders
smtpInCmd("HELO");
replyCode = mClient->Helo(); // Send HELO command
@ -785,7 +784,7 @@ bool KMSendSMTP::smtpSend(KMMessage* aMsg)
aMsg->removeHeaderField("Bcc");
}
kapp->processEvents(500);
kapp->processEvents(50); // not sure this is safe -sanders
smtpInCmd("DATA");
replyCode = mClient->Data(); // Send DATA command

Loading…
Cancel
Save