diff --git a/src/window.js b/src/window.js index 5e8c71fc23..28206af5c9 100644 --- a/src/window.js +++ b/src/window.js @@ -261,7 +261,7 @@ } if (response_id == 'RESPONSE_CANCEL' && - this.screen.current_record !== null) { + this.screen.current_record) { result = false; if ((this.screen.current_record.id < 0) || this.save_current) { this.screen.group.remove(this.screen.current_record, true);