2021-06-10 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that threw a SQL error when attempting
	to add a new user.
	* Fixed a bug in rdadmin(1) that caused the incorrect Login Name
	to appear in the 'Rivendell User List' dialog immediately after
	adding the user.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-10 15:17:03 -04:00
parent 64eb9860ce
commit f7ade0d59e
3 changed files with 13 additions and 13 deletions

View File

@@ -213,10 +213,10 @@ void RDUserListModel::refresh(const QModelIndex &row)
}
void RDUserListModel::refresh(const QString &grpname)
void RDUserListModel::refresh(const QString &username)
{
for(int i=0;i<d_texts.size();i++) {
if(d_texts.at(i).at(0)==grpname) {
if(d_texts.at(i).at(0)==username) {
updateRowLine(i);
return;
}
@@ -267,7 +267,7 @@ void RDUserListModel::updateRowLine(int line)
{
if(line<d_texts.size()) {
QString sql=sqlFields()+
filterSql(d_texts.at(line).at(line).toString());
filterSql(d_texts.at(line).at(0).toString());
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
updateRow(line,q);