|
@@ -393,6 +393,8 @@
|
393
|
393
|
}
|
394
|
394
|
return true;
|
395
|
395
|
}
|
|
396
|
+ var duration = findChildObject(this, 'duration');
|
|
397
|
+ var timefield = findChildObject(this, 'time');
|
396
|
398
|
profilebutton.clicked.connect(function() {
|
397
|
399
|
var proceed = false;
|
398
|
400
|
if(validateCapacity()) {
|
|
@@ -401,6 +403,10 @@
|
401
|
403
|
proceed = displayWarning(TTR("batchWindow", "Suspicious Input"),
|
402
|
404
|
TTR("batchWindow", "Entered green coffee weight exceeds maximum batch size. Continue?"));
|
403
|
405
|
}
|
|
406
|
+ if((proceed == true) && (timefield.text.length != 0)) {
|
|
407
|
+ proceed = displayWarning(TTR("batchWindow", "Batch Already Roasted"),
|
|
408
|
+ TTR("batchWindow", "Roasting data already exists for this batch. Roasting another batch from this window will overwrite existing data. Are you sure you want to do this?"));
|
|
409
|
+ }
|
404
|
410
|
if(proceed) {
|
405
|
411
|
doLoadProfile();
|
406
|
412
|
}
|
|
@@ -484,6 +490,10 @@
|
484
|
490
|
proceed = displayWarning(TTR("batchWindow", "Suspicious Input"),
|
485
|
491
|
TTR("batchWindow", "Entered green coffee weight exceeds maximum batch size. Continue?"));
|
486
|
492
|
}
|
|
493
|
+ if((proceed == true) && (timefield.text.length != 0)) {
|
|
494
|
+ proceed = displayWarning(TTR("batchWindow", "Batch Already Roasted"),
|
|
495
|
+ TTR("batchWindow", "Roasting data already exists for this batch. Roasting another batch from this window will overwrite existing data. Are you sure you want to do this?"));
|
|
496
|
+ }
|
487
|
497
|
if(proceed) {
|
488
|
498
|
doNoProfile();
|
489
|
499
|
}
|
|
@@ -495,9 +505,7 @@
|
495
|
505
|
navigationwindow.loggingWindow.activateWindow();
|
496
|
506
|
}
|
497
|
507
|
var submitbutton = findChildObject(this, 'submit');
|
498
|
|
- var timefield = findChildObject(this, 'time');
|
499
|
508
|
var notes = findChildObject(this, 'annotation');
|
500
|
|
- var duration = findChildObject(this, 'duration');
|
501
|
509
|
var approval = findChildObject(this, 'approval');
|
502
|
510
|
approval.checked = true;
|
503
|
511
|
var target = findChildObject(this, 'target');
|