Backport r995572 by pokrzywka from trunk to the 4.3 branch:
Backport r995572 by pokrzywka from trunk to the 4.3 branch:

Use the new allowExternalProcessWindowActivation() instead of activateWindowForProcess(), as it handles the case "kmail started when kontact is already running", while activateWindowForProcess() would fail to find the process.

nb: backport to e4 branch (requires #995565)

svn path=/branches/KDE/4.3/kdepim/; revision=997785

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