From 612f6a7e085c66024c9c4021d1102e9982b18b56 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 25 Mar 2022 12:25:08 -0400 Subject: [PATCH] 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. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ lib/rdlogmodel.cpp | 1 + 2 files changed, 5 insertions(+) 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;