[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: [kdepim] mailcommon: in setCollectionFullPath(), don't try to get the fullCollectionPath
From:       laurent Montel <montel () kde ! org>
Date:       2012-02-01 8:04:22
Message-ID: 3205603.DExD7rXsvq () kspread
[Download RAW message or body]

Le mercredi 1 février 2012 00:02:49 Allen Winter a écrit :
> Git commit 85d050bf2bd1bbe8e73ee2775a6b0248cdc746dc by Allen Winter.
> Committed on 01/02/2012 at 00:01.
> Pushed by winterz into branch 'master'.
> 
> in setCollectionFullPath(), don't try to get the fullCollectionPath
> from the Akonadi::Collection specified unless we have collectionModel
> in the kernel.

> -void FolderRequester::setCollectionFullPath( const Akonadi::Collection&col
> ) +void FolderRequester::setCollectionFullPath( const Akonadi::Collection
> &col ) {
> -  edit->setText( Util::fullCollectionPath( col ) );
> +  if ( KernelIf->collectionModel() ) {
> +    edit->setText( Util::fullCollectionPath( col ) );
> +  }
>  }

When don t you have collectionModel you keep text empty ?
Regards

> 
>  //-------------------------------------------------------------------------
> ----
-- 
Laurent Montel | laurent.montel@kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic