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:
Fred Gleason
2022-03-09 15:42:55 -05:00
parent 0c8acd502a
commit 3a41e13afd
25 changed files with 166 additions and 167 deletions

View File

@@ -2,7 +2,7 @@
//
// Rivendell web service portal -- Log services
//
// (C) Copyright 2013-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2013-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
@@ -292,7 +292,9 @@ void Xport::SaveLog()
//
// Logline Data
//
RDLogModel *logmodel=new RDLogModel(log_name,false,this);
// RDLogModel *logmodel=new RDLogModel(log_name,false,this);
RDLogModel *logmodel=new RDLogModel(false,this);
logmodel->setLogName(log_name);
for(int i=0;i<line_quantity;i++) {
logmodel->insert(i,1);
RDLogLine *ll=logmodel->logLine(i);