Prevent adding files while there are pop-up windows open.