diff --git a/src/window.js b/src/window.js index ace6a0c4dd..505305e34a 100644 --- a/src/window.js +++ b/src/window.js @@ -43,7 +43,9 @@ var buttons = []; buttons.push({ - text: 'Cancel', + text: (!kwargs.new_ && this.screen.current_view && + this.screen.current_record.id < 0 ? + 'Delete' : 'Cancel'), click: function() { this.response('RESPONSE_CANCEL'); }.bind(this)