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

* Fixed a regression in rdairplay(1) that caused currently playing
	log items to disappear when loading a new log.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-03-25 13:08:04 -04:00
parent 612f6a7e08
commit 1c653b8b84
3 changed files with 5 additions and 1 deletions

View File

@ -22961,3 +22961,6 @@
* 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-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdairplay(1) that caused currently playing
log items to disappear when loading a new log.

View File

@ -247,7 +247,7 @@ QString RDLogModel::logName() const
void RDLogModel::setLogName(QString logname)
{
clear();
// clear();
RDLog *log=new RDLog(logname);
d_log_name=log->name(); // So we normalize the case
delete log;

View File

@ -450,6 +450,7 @@ int EditLog::exec(const QString &logname,QStringList *new_logs)
}
edit_log=new RDLog(edit_logname);
edit_logname_label->setText(edit_logname);
edit_log_model->clear();
edit_log_model->setLogName(edit_logname);
edit_log_model->load(true);
edit_log_view->resizeColumnsToContents();