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

@ -21612,3 +21612,6 @@
2021-04-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed regressions caused by changes in behavior in the null
constructor of 'QTime' between Qt4 and Qt5.
2021-04-26 Fred Gleason <fredg@paravelsystems.com>
* Added a check for zero length recordings to the 'Edit Recording'
dialog in rdcatch(1).

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;

View File

@ -772,6 +772,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>

View File

@ -772,6 +772,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>

View File

@ -772,6 +772,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>

View File

@ -653,6 +653,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>

View File

@ -769,6 +769,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>

View File

@ -769,6 +769,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>

View File

@ -772,6 +772,10 @@ New</source>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The Record Length parameter cannot be &quot;00:00:00&quot;!</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>EditSwitchEvent</name>