summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-18 15:41:10 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-18 15:41:10 -0600
commitd41d00bc1708d5875b3305d9af036a08f0db5a88 (patch)
treee6662a81d1ba5acb00fdb8c0744803038ac5ba1c
parent0e9db4fe22f40c7ce1a10235369f1253295b4d85 (diff)
downloadhorizon-d41d00bc1708d5875b3305d9af036a08f0db5a88.tar.gz
horizon-d41d00bc1708d5875b3305d9af036a08f0db5a88.tar.bz2
horizon-d41d00bc1708d5875b3305d9af036a08f0db5a88.tar.xz
horizon-d41d00bc1708d5875b3305d9af036a08f0db5a88.zip
Qt UI: [un]ticking 'Admin' for account changes validity
If a user account is otherwise empty, 'Admin' determines validity.
-rw-r--r--ui/qt5/useraccountwidget.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt5/useraccountwidget.cc b/ui/qt5/useraccountwidget.cc
index 72afc37..f499c31 100644
--- a/ui/qt5/useraccountwidget.cc
+++ b/ui/qt5/useraccountwidget.cc
@@ -67,6 +67,9 @@ UserAccountWidget::UserAccountWidget(QWidget *parent)
adminTick = new QCheckBox(tr("Admin"));
adminTick->setToolTip(tr("Allows this user to perform administrative tasks"));
adminTick->setWhatsThis(tr("If ticked, allows this user to perform administrative tasks on the computer."));
+ connect(adminTick, &QCheckBox::stateChanged, [=]{
+ emit validityChanged();
+ });
passAdminLayout->addWidget(adminTick);
QVBoxLayout *detailLayout = new QVBoxLayout;