Fix Videodialog now closes correct when changing the orientation