Fixed first-startup issues with subresources not set up. I think we can get rid of

slotRefresh() - and even of mCalendar/mContacts/etc, but not now :)

svn path=/branches/proko2/kdepim/; revision=331663
wilder-work
David Faure 22 years ago
parent 3081a77bb8
commit b5f28b3fc6
  1. 11
      kmailicalifaceimpl.cpp

@ -1473,12 +1473,21 @@ void KMailICalIfaceImpl::readConfig()
// Make KOrganizer re-read everything
#if 0 // old way, not enough finegrained (and most resources don't call doOpen, so they miss the subresources anyway)
slotRefresh( "Calendar" );
slotRefresh( "Task" );
slotRefresh( "Journal" );
slotRefresh( "Contact" );
slotRefresh( "Notes" );
#else
subresourceAdded( folderContentsType( KMail::ContentsTypeCalendar ), mCalendar->location() );
subresourceAdded( folderContentsType( KMail::ContentsTypeTask ), mTasks->location() );
subresourceAdded( folderContentsType( KMail::ContentsTypeJournal ), mJournals->location() );
subresourceAdded( folderContentsType( KMail::ContentsTypeContact ), mContacts->location() );
subresourceAdded( folderContentsType( KMail::ContentsTypeNote ), mNotes->location() );
// This also shows that we might even get rid of the mCalendar etc. special
// case and just use ExtraFolder for all
#endif
reloadFolderTree();
}

Loading…
Cancel
Save