Forward port of:
Forward port of:

SVN commit 497744 by dfaure:

Stop (non-single-shot!) timer before emitting the signal, god knows how
much time we'll spend in its slots... if we end up in a subeventloop then the
timer will fire repeatedly.

Also committing patch to avoid progress dialog in non-gui app, as
discussed on kdepim some time ago.


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

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