[Kde-pim] Re: the path was never set before

Kevin Krammer kevin.krammer at gmx.at
Wed Jun 29 18:41:29 BST 2011


Hi Guy,

On Wednesday, 2011-06-29, Guy Maurel wrote:
> Hello Kevin!
> 
> I have a problem with the mixedmaildirresource:
> 
> At the line mixedmaildirresource.cpp:88, there is an "if":
>   if ( ensureSaneConfiguration() ) {
> 
> This is a call of the method "bool
> MixedMaildirResource::ensureSaneConfiguration()" which has an "if":
>   if ( Settings::self()->path().isEmpty() ) {
>      const QString message = i18nc( "@info:status", "No usable storage
> location configured."); kError() << message;
>      status( Broken, message );
>      return false;
>   }
> 
> I mean, the path was *never* set before, the return will be all the time
> "false".

Indeed, it is always false on first start because the resource has not been 
configured yet.
It will always be true once it has been configured and the file system wasn't 
changed (e.g. path moved or removed)

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110629/e4481f2e/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list