2022-04-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdlogmanager(1) where attempting to generate
	a SoundExchange Statutory License report using the command-line
	option would cause a crash.
	* Added an '-h' option to rdlogmanager(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-04-01 20:26:44 -04:00
parent 91345cb991
commit 3cc7806db1
8 changed files with 109 additions and 16 deletions

View File

@@ -31,7 +31,8 @@
#include "rdreport.h"
bool RDReport::ExportSoundEx(const QString &filename,const QDate &startdate,
const QDate &enddate,const QString &mixtable)
const QDate &enddate,double ath,
const QString &mixtable)
{
QString sql;
RDSqlQuery *q;
@@ -49,11 +50,12 @@ bool RDReport::ExportSoundEx(const QString &filename,const QDate &startdate,
//
// Get ATH Value
//
double ath=0.0;
RDGetAth *getath=new RDGetAth(&ath);
if(getath->exec()<0) {
report_error_code=RDReport::ErrorCanceled;
return false;
if(ath<0.0) {
RDGetAth *getath=new RDGetAth(&ath);
if(getath->exec()<0) {
report_error_code=RDReport::ErrorCanceled;
return false;
}
}
QFile *file=new QFile(filename);