Mercurial: Assign parent to dialogs

Change-Id: I8c875b86610a9a647821cca563ff4c1a0c11cbaa
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>