mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user