Do not close edit area if browse foreign dialog is visible

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>