[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: [Bug 82122] "check what the server supports" give "unknown error
From: Carsten Burghardt <burghardt () kde ! org>
Date: 2004-06-27 11:11:08
Message-ID: 20040627111108.23937.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=82122
burghardt kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From burghardt kde org 2004-06-27 13:11 -------
CVS commit by burghard:
Display error messages when we get some from the Server check.
CCMAIL: 81154-done bugs kde org
CCMAIL: 82122-done bugs kde org
M +15 -11 kmservertest.cpp 1.24
--- kdepim/kmail/kmservertest.cpp #1.23:1.24
@ -39,4 +39,5 @
#include <kdebug.h>
#include <kurl.h>
+#include <kapplication.h>
#include <kio/scheduler.h>
#include <kio/slave.h>
@ -81,4 +82,5 @ void KMServerTest::startOffSlave( int po
mSlave = KIO::Scheduler::getConnectedSlave( url, slaveConfig() );
+ kdDebug() << "slave=" << mSlave << endl;
if ( !mSlave ) {
slotSlaveResult( 0, 1 );
@ -108,5 +110,4 @ void KMServerTest::slotData(KIO::Job *,
else
mListNormal = QStringList::split(' ', data);
-kdDebug(5006) << data << endl;
}
@ -138,5 +139,5 @ void KMServerTest::slotResult(KIO::Job *
//-----------------------------------------------------------------------------
void KMServerTest::slotSlaveResult(KIO::Slave *aSlave, int error,
- const QString &)
+ const QString &errorText)
{
if (aSlave != mSlave) return;
@ -146,17 +147,20 @ void KMServerTest::slotSlaveResult(KIO::
mSlave = 0;
}
+ if ( error > 0 )
+ {
+ KMessageBox::error( kapp->activeWindow(), KIO::buildErrorString( error, errorText ),
+ i18n("Error") );
+ mJob = 0;
+ mListNormal.clear();
+ mListSSL.clear();
+ emit capabilities( mListNormal, mListSSL );
+ return;
+ }
if (!mSSL) {
mSSL = true;
- if ( error )
- mListNormal.clear();
- else
mListNormal.append("NORMAL-CONNECTION");
startOffSlave();
} else {
- if ( error )
- mListSSL.clear();
- else
mListSSL.append("SSL");
-
mJob = 0;
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic