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.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-03-09 12:54:11 -05:00
parent c2431e2f4f
commit 0c8acd502a
2 changed files with 11 additions and 3 deletions

View File

@ -22937,3 +22937,7 @@
2022-03-08 Fred Gleason <fredg@paravelsystems.com>
* Added a 'direct' namespace to the 'Apple iTunes' and
'Apple iTunes + Superfeed' RSS schemas.
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.

View File

@ -247,9 +247,13 @@ QString RDLogModel::logName() const
void RDLogModel::setLogName(QString logname)
{
RDLog *log=new RDLog(logname);
d_log_name=log->name(); // So we normalize the case
delete log;
if(d_log_name.toLower()!=logname) {
clear();
printf("RDLogModel::setLogName(%s)\n",logname.toUtf8().constData());
RDLog *log=new RDLog(logname);
d_log_name=log->name(); // So we normalize the case
delete log;
}
}