Avoid losing editor focus when switching to debug/analyze mode.

Task-number: QTCREATORBUG-8268

Change-Id: I0a8582305a07f1a07f170baf23f39a3c684b17ad
Reviewed-by: Daniel Teske <daniel.teske@digia.com>