2021-04-26 Fred Gleason <fredg@paravelsystems.com>

* Added a check for zero length recordings to the 'Edit Recording'
	dialog in rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-04-26 12:13:45 -04:00
parent 65d249a9e1
commit c8e0bd5bb0
9 changed files with 41 additions and 0 deletions

View File

@@ -955,6 +955,11 @@ bool EditRecording::CheckEvent(bool include_myself)
break;
case RDRecording::LengthEnd:
if(QTime(0,0,0).msecsTo(edit_endlength_edit->time())==0) {
QMessageBox::warning(this,"RDCatch - "+tr("Record Parameter Error"),
tr("The Record Length parameter cannot be \"00:00:00\"!"));
return false;
}
break;
}
break;
@@ -980,6 +985,11 @@ bool EditRecording::CheckEvent(bool include_myself)
break;
case RDRecording::LengthEnd:
if(QTime(0,0,0).msecsTo(edit_endlength_edit->time())==0) {
QMessageBox::warning(this,"RDCatch - "+tr("Record Parameter Error"),
tr("The Record Length parameter cannot be \"00:00:00\"!"));
return false;
}
break;
}
break;