diff --git a/ChangeLog b/ChangeLog index 131899f2..e7ace496 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22957,3 +22957,7 @@ during the same session. 2022-03-09 Fred Gleason * Refactored the 'RDAddLog' dialog to allow for instance reuse. +2022-03-25 Fred Gleason + * Fixed a regression in rdlogedit(1) that caused events from + previously viewed logs to be prepended to subsequent logs viewed + during the same session. diff --git a/lib/rdlogmodel.cpp b/lib/rdlogmodel.cpp index 960ec286..a631131b 100644 --- a/lib/rdlogmodel.cpp +++ b/lib/rdlogmodel.cpp @@ -247,6 +247,7 @@ QString RDLogModel::logName() const void RDLogModel::setLogName(QString logname) { + clear(); RDLog *log=new RDLog(logname); d_log_name=log->name(); // So we normalize the case delete log;