Fixed crash (I still don't understand why new imap folders don't get assigned

an account right away, but only when syncing... Sounds like a bug, so this commit
is more of a workaround...)

svn path=/trunk/kdepim/; revision=305208
wilder-work
David Faure 22 years ago
parent a04faf2f0d
commit 30eeeaf18a
  1. 2
      folderdiaacltab.cpp

@ -717,7 +717,7 @@ bool KMail::FolderDiaACLTab::supports( KMFolder* refFolder )
imapAccount = static_cast<KMFolderImap*>( refFolder->storage() )->account();
else
imapAccount = static_cast<KMFolderCachedImap*>( refFolder->storage() )->account();
return imapAccount->hasACLSupport(); // support for ACLs (or not tried connecting yet)
return imapAccount && imapAccount->hasACLSupport(); // support for ACLs (or not tried connecting yet)
}
#include "folderdiaacltab.moc"

Loading…
Cancel
Save