The structure of this code was messed up:
The structure of this code was messed up:

o Make it compile now
o todo->addAttachment(...) is placed in the beginChange() - endChange() block

svn path=/trunk/kdepim/; revision=400284

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