auto admin
This commit is contained in:
parent
277d7e2173
commit
2a11466779
1 changed files with 2 additions and 2 deletions
|
@ -87,6 +87,8 @@ TabAdmin::TabAdmin(TabSupervisor *_tabSupervisor, AbstractClient *_client, bool
|
||||||
QWidget * mainWidget = new QWidget(this);
|
QWidget * mainWidget = new QWidget(this);
|
||||||
mainWidget->setLayout(mainLayout);
|
mainWidget->setLayout(mainLayout);
|
||||||
setCentralWidget(mainWidget);
|
setCentralWidget(mainWidget);
|
||||||
|
|
||||||
|
actUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabAdmin::retranslateUi()
|
void TabAdmin::retranslateUi()
|
||||||
|
@ -125,7 +127,6 @@ void TabAdmin::actReloadConfig()
|
||||||
|
|
||||||
void TabAdmin::actUnlock()
|
void TabAdmin::actUnlock()
|
||||||
{
|
{
|
||||||
if (QMessageBox::question(this, tr("Unlock administration functions"), tr("Do you really want to unlock the administration functions?"), QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
|
|
||||||
if (fullAdmin)
|
if (fullAdmin)
|
||||||
adminGroupBox->setEnabled(true);
|
adminGroupBox->setEnabled(true);
|
||||||
lockButton->setEnabled(true);
|
lockButton->setEnabled(true);
|
||||||
|
@ -133,7 +134,6 @@ void TabAdmin::actUnlock()
|
||||||
locked = false;
|
locked = false;
|
||||||
emit adminLockChanged(false);
|
emit adminLockChanged(false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void TabAdmin::actLock()
|
void TabAdmin::actLock()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue