2021-07-20 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdadmin(1) that caused the username and
	description fields to be blank on the main window.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-07-20 19:17:44 -04:00
parent 76156b966a
commit 6c835fef3e
2 changed files with 5 additions and 2 deletions

View File

@ -22076,3 +22076,6 @@
2021-07-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that threw a SQL error when creating a
new matrix device.
2021-07-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdadmin(1) that caused the username and
description fields to be blank on the main window.

View File

@ -108,13 +108,11 @@ MainWidget::MainWidget(RDConfig *config,RDWidget *parent)
name_label->setGeometry(0,5,sizeHint().width(),20);
name_label->setAlignment(Qt::AlignVCenter|Qt::AlignCenter);
name_label->setFont(labelFont());
name_label->setText(tr("User")+": "+rda->user()->name());
QLabel *description_label=new QLabel(this);
description_label->setGeometry(0,24,sizeHint().width(),14);
description_label->setAlignment(Qt::AlignVCenter|Qt::AlignCenter);
name_label->setFont(labelFont());
description_label->setText(rda->user()->description());
//
// Manage Users Button
@ -238,6 +236,8 @@ MainWidget::MainWidget(RDConfig *config,RDWidget *parent)
exit(1);
}
}
name_label->setText(tr("User")+": "+rda->user()->name());
description_label->setText(rda->user()->description());
users_button->setEnabled(config_priv);
groups_button->setEnabled(config_priv);
services_button->setEnabled(config_priv);