Diffstat (limited to 'core/settings/security/security.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/security/security.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/settings/security/security.cpp b/core/settings/security/security.cpp index 2821f4b..4701506 100644 --- a/core/settings/security/security.cpp +++ b/core/settings/security/security.cpp @@ -52,56 +52,57 @@ Security::Security( QWidget* parent, const char* name, WFlags fl ) if ( sshAvailable() ) ssh->setChecked(cfg.readEntry("allow_ssh")); else ssh->hide(); */ connect(changepasscode,SIGNAL(clicked()), this, SLOT(changePassCode())); connect(clearpasscode,SIGNAL(clicked()), this, SLOT(clearPassCode())); updateGUI(); dl = new QPEDialogListener(this); + showMaximized(); } Security::~Security() { } void Security::updateGUI() { bool empty = passcode.isEmpty(); - changepasscode->setText( empty ? tr("Set passcode" ) + changepasscode->setText( empty ? tr("Set passcode" ) : tr("Change passcode" ) ); passcode_poweron->setEnabled( !empty ); clearpasscode->setEnabled( !empty ); } void Security::show() { valid=FALSE; setEnabled(FALSE); SecurityBase::show(); if ( passcode.isEmpty() ) { // could insist... //changePassCode(); //if ( passcode.isEmpty() ) //reject(); } else { QString pc = enterPassCode(tr("Enter passcode")); if ( pc != passcode ) { - QMessageBox::critical(this, tr("Passcode incorrect"), + QMessageBox::critical(this, tr("Passcode incorrect"), tr("The passcode entered is incorrect.\nAccess denied")); reject(); return; } } setEnabled(TRUE); valid=TRUE; } void Security::accept() { applySecurity(); |