Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Message::ComposerViewBase::setFcc ( const Akonadi::Collection& fccCollection )
- {
- if ( m_fccCombo ) {
- @@ -1216,8 +1217,19 @@ void Message::ComposerViewBase::setFcc ( const Akonadi::Collection& fccCollectio
- } else {
- m_fccCollection = fccCollection;
- }
- + Akonadi::CollectionFetchJob *collectionFccExists = new Akonadi::CollectionFetchJob( fccCollection, Akonadi::CollectionFetchJob::Base );
- + connect( collectionFccExists, SIGNAL( result( KJob *job ) ), SLOT( slotCollectionFccExists( KJob* ) ) );
- }
- +void Message::ComposerViewBase::slotCollectionFccExists(KJob* job)
- +{
- + if( job->error() ) {
- + Akonadi::Collection col( Akonadi::SpecialMailCollections::SentMail );
- + m_fccCombo->setDefaultCollection( col );
- + }
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement