Make ConfirmDialog interpret clicking X as 'cancel', not as 'OK'

Change-Id: I784f37c85f7f1e88b5e6b06a58e7e0fd10ac94df