mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-02 00:49:37 +02:00
2017-11-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdcatchd(8) that caused the cut start and end datetime values to be reset when running a record event even when no datetime offsets were specified.
This commit is contained in:
parent
571d91a8f0
commit
47ae5f7db1
@ -16360,3 +16360,7 @@
|
||||
2017-11-09 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed bugs in rivendell.ism' that broke the installer build
|
||||
under Windows.
|
||||
2017-11-10 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in rdcatchd(8) that caused the cut start and end
|
||||
datetime values to be reset when running a record event even when
|
||||
no datetime offsets were specified.
|
||||
|
@ -1358,13 +1358,17 @@ bool MainObject::StartRecording(int event)
|
||||
bool valid;
|
||||
QDateTime datetime=cut->startDatetime(&valid);
|
||||
if(valid) {
|
||||
datetime.setDate(QDate::currentDate().
|
||||
addDays(catch_events[event].startdateOffset()));
|
||||
cut->setStartDatetime(datetime,true);
|
||||
datetime=cut->endDatetime(&valid);
|
||||
datetime.setDate(QDate::currentDate().
|
||||
addDays(catch_events[event].enddateOffset()));
|
||||
cut->setEndDatetime(datetime,true);
|
||||
if(catch_events[event].startdateOffset()!=0) {
|
||||
datetime.setDate(QDate::currentDate().
|
||||
addDays(catch_events[event].startdateOffset()));
|
||||
cut->setStartDatetime(datetime,true);
|
||||
}
|
||||
if(catch_events[event].enddateOffset()!=0) {
|
||||
datetime=cut->endDatetime(&valid);
|
||||
datetime.setDate(QDate::currentDate().
|
||||
addDays(catch_events[event].enddateOffset()));
|
||||
cut->setEndDatetime(datetime,true);
|
||||
}
|
||||
}
|
||||
delete cut;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user