Fixed issue #2909: Commit window unclosable after clicking "No" and "do not ask again"