Just inform your employer in Qatar that you'll need to pass by Dubai for family reasons and will continue to Qatar.