Fix for cancel in the save dialog

TBR: @Benglin @ikeough