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 group names in 'RDGroups::RDGroups()'.
This commit is contained in:
parent
14493d229c
commit
7f4e3a2439
@ -18617,3 +18617,6 @@
|
||||
* Renamed the 'SchedCartList' class to 'RDSchedCartList' and
|
||||
refactored it to be idiomatic Qt.
|
||||
* Renamed the 'SchedRulesList' class to 'RDSchedRulesList'.
|
||||
2019-04-29 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added code to normalize the case of group names in
|
||||
'RDGroups::RDGroups()'.
|
||||
|
@ -45,6 +45,18 @@ RDGroup::RDGroup(QString name,bool create)
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
else {
|
||||
//
|
||||
// Normalize case
|
||||
//
|
||||
sql=QString("select NAME from GROUPS where ")+
|
||||
"NAME=\""+RDEscapeString(name)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
group_name=q->value(0).toString();
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user