From 149cb8e3b729ae61cbbe81d48c0df818774a730d Mon Sep 17 00:00:00 2001 From: Markus Wuebben Date: Sun, 22 Feb 1998 13:55:39 +0000 Subject: [PATCH] //$ markus: -added some processEvents() to reduce blocking.... svn path=/trunk/kdenetwork/kmail/; revision=5496 --- kmacctpop.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kmacctpop.cpp b/kmacctpop.cpp index 557565014..b78cd0d75 100644 --- a/kmacctpop.cpp +++ b/kmacctpop.cpp @@ -106,6 +106,9 @@ bool KMAcctPop::doProcessNewMail(KMIOStatus *wid) wid->setHost(host()); // is everything specified ? + + app->processEvents(); + if (mHost.isEmpty() || mPort<=0) { warning(i18n("Please specify Host, Port and\n" @@ -137,6 +140,8 @@ bool KMAcctPop::doProcessNewMail(KMIOStatus *wid) // we end up with a lock up! Certainly not desirable! if (client.Open(mHost,mPort) != '+') return popError("OPEN", client); + + app->processEvents(); // It might not necessarly be a network error if User & Pass // reply != +. It's more likely that the username or the passwd is wrong @@ -200,7 +205,7 @@ bool KMAcctPop::doProcessNewMail(KMIOStatus *wid) } wid->updateProgressBar(id,num); debug("processing message %d", id); - app->processEvents(1000); + app->processEvents(); if (client.List(id) != '+') return popError("LIST", client); response = client.SingleLineResponse().c_str();