JPEG preview window doesn't get closed
GIMP version:
git master
Operating System: Linux
Description of the bug
After a while of working on an image and exporting in various ways a have loads of tabs, each being a new view of the original image - closing them doesn't give a warning.
Reproduction
Open an image Use file->Export As export the image. You now have (in single window mode) two tabs open. Use File->Export as again with a new name You now have three tabs open
Expected result:
Actual result:
File->Export should remove the extra image view after the export is done.