summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-04-09 18:39:37 (UTC)
committer harlekin <harlekin>2003-04-09 18:39:37 (UTC)
commit6e2ee769c8e6cba600e235822d5003cfe31e55c5 (patch) (unidiff)
treebd1a63c87a051c9762846f4e75c274814d385e9a
parentbacff63f1e4915c683a409e81b18ffcf5aeceda3 (diff)
downloadopie-6e2ee769c8e6cba600e235822d5003cfe31e55c5.zip
opie-6e2ee769c8e6cba600e235822d5003cfe31e55c5.tar.gz
opie-6e2ee769c8e6cba600e235822d5003cfe31e55c5.tar.bz2
show allways maximized after startup
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/security/security.cpp5
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 )
52 52
53 if ( sshAvailable() ) 53 if ( sshAvailable() )
54 ssh->setChecked(cfg.readEntry("allow_ssh")); 54 ssh->setChecked(cfg.readEntry("allow_ssh"));
55 else 55 else
56 ssh->hide(); 56 ssh->hide();
57 */ 57 */
58 58
59 connect(changepasscode,SIGNAL(clicked()), this, SLOT(changePassCode())); 59 connect(changepasscode,SIGNAL(clicked()), this, SLOT(changePassCode()));
60 connect(clearpasscode,SIGNAL(clicked()), this, SLOT(clearPassCode())); 60 connect(clearpasscode,SIGNAL(clicked()), this, SLOT(clearPassCode()));
61 updateGUI(); 61 updateGUI();
62 62
63 dl = new QPEDialogListener(this); 63 dl = new QPEDialogListener(this);
64 showMaximized();
64} 65}
65 66
66Security::~Security() 67Security::~Security()
67{ 68{
68} 69}
69 70
70 71
71void Security::updateGUI() 72void Security::updateGUI()
72{ 73{
73 bool empty = passcode.isEmpty(); 74 bool empty = passcode.isEmpty();
74 75
75 changepasscode->setText( empty ? tr("Set passcode" ) 76 changepasscode->setText( empty ? tr("Set passcode" )
76 : tr("Change passcode" ) ); 77 : tr("Change passcode" ) );
77 passcode_poweron->setEnabled( !empty ); 78 passcode_poweron->setEnabled( !empty );
78 clearpasscode->setEnabled( !empty ); 79 clearpasscode->setEnabled( !empty );
79} 80}
80 81
81 82
82void Security::show() 83void Security::show()
83{ 84{
84 valid=FALSE; 85 valid=FALSE;
85 setEnabled(FALSE); 86 setEnabled(FALSE);
86 SecurityBase::show(); 87 SecurityBase::show();
87 if ( passcode.isEmpty() ) { 88 if ( passcode.isEmpty() ) {
88 // could insist... 89 // could insist...
89 //changePassCode(); 90 //changePassCode();
90 //if ( passcode.isEmpty() ) 91 //if ( passcode.isEmpty() )
91 //reject(); 92 //reject();
92 } else { 93 } else {
93 QString pc = enterPassCode(tr("Enter passcode")); 94 QString pc = enterPassCode(tr("Enter passcode"));
94 if ( pc != passcode ) { 95 if ( pc != passcode ) {
95 QMessageBox::critical(this, tr("Passcode incorrect"), 96 QMessageBox::critical(this, tr("Passcode incorrect"),
96 tr("The passcode entered is incorrect.\nAccess denied")); 97 tr("The passcode entered is incorrect.\nAccess denied"));
97 reject(); 98 reject();
98 return; 99 return;
99 } 100 }
100 } 101 }
101 setEnabled(TRUE); 102 setEnabled(TRUE);
102 valid=TRUE; 103 valid=TRUE;
103} 104}
104 105
105void Security::accept() 106void Security::accept()
106{ 107{
107 applySecurity(); 108 applySecurity();