Forward port of SVN commit 474655 by kloecker:
Forward port of SVN commit 474655 by kloecker:

Fix the nasty bug which caused folder settings to disappear. It turns out that we deleted the config group just after we had saved it. Doh. Fixed by deleting the old folder configuration only if the folder has been renamed/moved. All kudos to Martin Koller for giving me the crucial hint.

svn path=/trunk/KDE/kdepim/; revision=474656

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