mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2022-03-09 Fred Gleason <fredg@paravelsystems.com>
* Refactored the 'RDAddLog' dialog to allow for instance reuse. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Generate a Rivendell Log
|
||||
//
|
||||
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -329,7 +329,8 @@ void GenerateLog::createData()
|
||||
//
|
||||
// Generate Exception Report
|
||||
//
|
||||
RDLogModel *model=new RDLogModel(logname,false,this);
|
||||
RDLogModel *model=new RDLogModel(false,this);
|
||||
model->setLogName(logname);
|
||||
model->load();
|
||||
if((model->validate(&report,gen_date_edit->date())==0)&&
|
||||
unused_report.isEmpty()) {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Generate/merge logs from the command line.
|
||||
//
|
||||
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -107,7 +107,8 @@ void LogObject::userData()
|
||||
//
|
||||
// Generate Exception Report
|
||||
//
|
||||
RDLogModel *model=new RDLogModel(logname,false,this);
|
||||
RDLogModel *model=new RDLogModel(false,this);
|
||||
model->setLogName(logname);
|
||||
model->load();
|
||||
if((model->validate(&report,start_date)!=0)||
|
||||
(!unused_report.isEmpty())) {
|
||||
|
Reference in New Issue
Block a user