Do not show an error message if a write-only folder is selected. This should be ok as

noContent folders are detected beforehand and therefore this error can only occur
if the folder is restricted with acls. I do not want to check this before the folder
is selected as this would take more time so we do a "lazy init" and just wait for the error.

BUGS:91428

svn path=/trunk/kdepim/; revision=392448
wilder-work
Carsten Burghardt 21 years ago
parent 144cf4b153
commit c1f74a9f39
  1. 7
      kmfolderimap.cpp

@ -820,7 +820,12 @@ void KMFolderImap::slotCheckValidityResult(KIO::Job * job)
ImapAccountBase::JobIterator it = mAccount->findJob(job);
if ( it == mAccount->jobsEnd() ) return;
if (job->error()) {
mAccount->handleJobError( job, i18n("Error while querying the server status.") );
if ( job->error() != KIO::ERR_ACCESS_DENIED ) {
// we suppress access denied messages because they are normally a result of
// explicitely set ACLs. Do not save this information (e.g. setNoContent) so that
// we notice when this changes
mAccount->handleJobError( job, i18n("Error while querying the server status.") );
}
mContentState = imapNoInformation;
emit folderComplete(this, FALSE);
} else {

Loading…
Cancel
Save