port SVN commit 924015 by smartins:
port SVN commit 924015 by smartins:

requestClose() must be called before save() because save() causes resourceClosed() to be called.

Currently, the first time a resource is closed it doesn't really get closed but it stays marked to be closed (because of 
requestClose()), then, when a normal save comes, like when you add an incidence, closeResource() will close the resource because 
there's a pending close request, all incidences are freed and you get a KOAgendaItem::paintEvent() crash.

hopefully this puts kolab/issue3065 to bed. 

svn path=/branches/kdepim/enterprise/kdepim/; revision=925098

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi