diff --git a/ChangeLog b/ChangeLog index 544c3d8a..be3a6255 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21612,3 +21612,6 @@ 2021-04-26 Fred Gleason * Fixed regressions caused by changes in behavior in the null constructor of 'QTime' between Qt4 and Qt5. +2021-04-26 Fred Gleason + * Added a check for zero length recordings to the 'Edit Recording' + dialog in rdcatch(1). diff --git a/rdcatch/edit_recording.cpp b/rdcatch/edit_recording.cpp index f2899d2c..9530e087 100644 --- a/rdcatch/edit_recording.cpp +++ b/rdcatch/edit_recording.cpp @@ -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; diff --git a/rdcatch/rdcatch_cs.ts b/rdcatch/rdcatch_cs.ts index e6ea74aa..5fbec48d 100644 --- a/rdcatch/rdcatch_cs.ts +++ b/rdcatch/rdcatch_cs.ts @@ -772,6 +772,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent diff --git a/rdcatch/rdcatch_de.ts b/rdcatch/rdcatch_de.ts index ddbfc2df..4389ffe0 100644 --- a/rdcatch/rdcatch_de.ts +++ b/rdcatch/rdcatch_de.ts @@ -772,6 +772,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent diff --git a/rdcatch/rdcatch_es.ts b/rdcatch/rdcatch_es.ts index ccb400b0..baefb517 100644 --- a/rdcatch/rdcatch_es.ts +++ b/rdcatch/rdcatch_es.ts @@ -772,6 +772,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent diff --git a/rdcatch/rdcatch_fr.ts b/rdcatch/rdcatch_fr.ts index 4dc13104..ea342431 100644 --- a/rdcatch/rdcatch_fr.ts +++ b/rdcatch/rdcatch_fr.ts @@ -653,6 +653,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent diff --git a/rdcatch/rdcatch_nb.ts b/rdcatch/rdcatch_nb.ts index e6665257..c3d9d2c1 100644 --- a/rdcatch/rdcatch_nb.ts +++ b/rdcatch/rdcatch_nb.ts @@ -769,6 +769,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent diff --git a/rdcatch/rdcatch_nn.ts b/rdcatch/rdcatch_nn.ts index e6665257..c3d9d2c1 100644 --- a/rdcatch/rdcatch_nn.ts +++ b/rdcatch/rdcatch_nn.ts @@ -769,6 +769,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent diff --git a/rdcatch/rdcatch_pt_BR.ts b/rdcatch/rdcatch_pt_BR.ts index 09b44005..02c1fa86 100644 --- a/rdcatch/rdcatch_pt_BR.ts +++ b/rdcatch/rdcatch_pt_BR.ts @@ -772,6 +772,10 @@ New Cancel + + The Record Length parameter cannot be "00:00:00"! + + EditSwitchEvent