Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. void Message::ComposerViewBase::setFcc ( const Akonadi::Collection& fccCollection )
  2. {
  3. if ( m_fccCombo ) {
  4. @@ -1216,8 +1217,19 @@ void Message::ComposerViewBase::setFcc ( const Akonadi::Collection& fccCollectio
  5. } else {
  6. m_fccCollection = fccCollection;
  7. }
  8. + Akonadi::CollectionFetchJob *collectionFccExists = new Akonadi::CollectionFetchJob( fccCollection, Akonadi::CollectionFetchJob::Base );
  9. + connect( collectionFccExists, SIGNAL( result( KJob *job ) ), SLOT( slotCollectionFccExists( KJob* ) ) );
  10. }
  11.  
  12. +void Message::ComposerViewBase::slotCollectionFccExists(KJob* job)
  13. +{
  14. + if( job->error() ) {
  15. + Akonadi::Collection col( Akonadi::SpecialMailCollections::SentMail );
  16. + m_fccCombo->setDefaultCollection( col );
  17. + }
  18. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement