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:
Fred Gleason 2019-04-29 15:52:53 -04:00
parent 14493d229c
commit 7f4e3a2439
2 changed files with 15 additions and 0 deletions

View File

@ -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()'.

View File

@ -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;
}
}