mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2017-12-04 Fred Gleason <fredg@paravelsystems.com>
* Added a 'log_unlink_test' harness. * Fixed a bug that caused a log's link status flags to fail to be updated when the log was unlinked.
This commit is contained in:
@@ -145,8 +145,8 @@ int RunLogOperation(int argc,char *argv[],const QString &svcname,
|
||||
}
|
||||
report="";
|
||||
log->removeTracks(rdstation_conf,rduser,config);
|
||||
svc->clearLogLinks(RDSvc::Traffic,start_date,logname);
|
||||
svc->clearLogLinks(RDSvc::Music,start_date,logname);
|
||||
svc->clearLogLinks(RDSvc::Traffic,logname);
|
||||
svc->clearLogLinks(RDSvc::Music,logname);
|
||||
if(svc->linkLog(RDSvc::Music,start_date,logname,&report)) {
|
||||
printf("%s\n",(const char*)report);
|
||||
}
|
||||
@@ -174,7 +174,7 @@ int RunLogOperation(int argc,char *argv[],const QString &svcname,
|
||||
return 256;
|
||||
}
|
||||
report="";
|
||||
svc->clearLogLinks(RDSvc::Traffic,start_date,logname);
|
||||
svc->clearLogLinks(RDSvc::Traffic,logname);
|
||||
if(svc->linkLog(RDSvc::Traffic,start_date,logname,&report)) {
|
||||
printf("%s\n",(const char*)report);
|
||||
}
|
||||
|
@@ -427,8 +427,8 @@ void GenerateLog::musicData()
|
||||
}
|
||||
}
|
||||
log->removeTracks(rdstation_conf,rduser,log_config);
|
||||
svc->clearLogLinks(RDSvc::Traffic,gen_date_edit->date(),logname);
|
||||
svc->clearLogLinks(RDSvc::Music,gen_date_edit->date(),logname);
|
||||
svc->clearLogLinks(RDSvc::Traffic,logname);
|
||||
svc->clearLogLinks(RDSvc::Music,logname);
|
||||
}
|
||||
connect(svc,SIGNAL(generationProgress(int)),
|
||||
gen_progress_dialog,SLOT(setProgress(int)));
|
||||
@@ -462,7 +462,7 @@ void GenerateLog::trafficData()
|
||||
delete svc;
|
||||
return;
|
||||
}
|
||||
svc->clearLogLinks(RDSvc::Traffic,gen_date_edit->date(),logname);
|
||||
svc->clearLogLinks(RDSvc::Traffic,logname);
|
||||
}
|
||||
connect(svc,SIGNAL(generationProgress(int)),
|
||||
gen_progress_dialog,SLOT(setProgress(int)));
|
||||
|
Reference in New Issue
Block a user