Fix use of locateLocal, and avoid a potential tempfile attack on the saved file. And make the code more 'KDE-like'
Fix use of locateLocal, and avoid a potential tempfile attack on the saved file. And make the code more 'KDE-like'

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

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