Mantis #4444 / MP1-2528 : Only reset Dialog Windows if Context menu is displayed. (This avoid loop)