mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-09 14:33:28 +02:00
2019-04-29 Fred Gleason <fredg@paravelsystems.com>
* Added code to normalize the case of log names in 'RDLog::RDLog()'.
This commit is contained in:
parent
44bca5bc35
commit
c170dc3d0a
@ -18620,3 +18620,6 @@
|
||||
2019-04-29 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added code to normalize the case of group names in
|
||||
'RDGroup::RDGroup()'.
|
||||
2019-04-29 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added code to normalize the case of log names in
|
||||
'RDLog::RDLog()'.
|
||||
|
@ -32,6 +32,17 @@
|
||||
RDLog::RDLog(const QString &name)
|
||||
{
|
||||
log_name=name;
|
||||
|
||||
//
|
||||
// Normalize case
|
||||
//
|
||||
QString sql=QString("select NAME from LOGS where ")+
|
||||
"NAME=\""+RDEscapeString(name)+"\"";
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
log_name=q->value(0).toString();
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
|
||||
|
||||
|
@ -84,7 +84,9 @@ QString RDLogEvent::logName() const
|
||||
|
||||
void RDLogEvent::setLogName(QString logname)
|
||||
{
|
||||
log_name=logname;
|
||||
RDLog *log=new RDLog(logname);
|
||||
log_name=log->name(); // So we normalize the case
|
||||
delete log;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user