Fix the focus issues, load a profile when load a file.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>