IDEA-132454 "Clear Read-Only Status" dialog displayed twice on cancel
(cherry picked from commit ca6951a)