This command is found in
Image>View/Show Selection.
This option toggles the visual dotted line that denotes a
selection within the image window. The selection still exists
even if this option is toggled. It is useful if you feel disturbed
by this line at a moment.