2022-03-25 Fred Gleason <fredg@paravelsystems.com>

* Reverted the following changes:
	2022-03-09 Fred Gleason <fredg@paravelsystems.com>
 	  * Fixed a regression in rdlogedit(1) that caused events from
	  previously viewed logs to be prepended to subsequent logs viewed
	  during the same session.
	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-25 12:04:39 -04:00
parent 672bd74a7c
commit 2fbc9681b4
25 changed files with 132 additions and 128 deletions

View File

@@ -38,9 +38,6 @@ ListLogs::ListLogs(RDLogPlay *log,QWidget *parent)
list_log=log;
setWindowTitle("RDAirPlay - "+tr("Select Log"));
list_addlog_dialog=new RDAddLog(RDLogFilter::StationFilter,
"RDAirPlay - "+tr("Rename Log"),this);
//
// Filter Widget
//
@@ -184,7 +181,11 @@ void ListLogs::saveAsButtonData()
{
QString logname;
QString svcname=*list_svcname;
if(list_addlog_dialog->exec(&logname,&svcname)<0) {
RDAddLog *log;
log=new RDAddLog(&logname,&svcname,RDLogFilter::StationFilter,
tr("Rename Log"),this);
if(log->exec()<0) {
delete log;
return;
}
*list_logname=logname;

View File

@@ -23,7 +23,6 @@
#include <QPushButton>
#include <rdadd_log.h>
#include <rddialog.h>
#include <rdlogfilter.h>
#include <rdloglistmodel.h>
@@ -71,7 +70,6 @@ class ListLogs : public RDDialog
QPushButton *list_cancel_button;
RDLogPlay *list_log;
RDLogLock **list_log_lock;
RDAddLog *list_addlog_dialog;
};