Only reset Dialog Windows if Context menu is displayed. (This avoid loop)