Review when to pop up warning message (see #10289)