summaryrefslogtreecommitdiff
path: root/core/settings/security/security.cpp
authorwaspe <waspe>2003-11-03 18:28:50 (UTC)
committer waspe <waspe>2003-11-03 18:28:50 (UTC)
commit87a9d6badcf518ffd14559ef886ff7729b63b73b (patch) (side-by-side diff)
tree05af57bcebb8a124c2561336e4ff3dfdd52aeccb /core/settings/security/security.cpp
parent9ce566fd5b280622670cf7b0e158f9d9c54e6e9a (diff)
downloadopie-87a9d6badcf518ffd14559ef886ff7729b63b73b.zip
opie-87a9d6badcf518ffd14559ef886ff7729b63b73b.tar.gz
opie-87a9d6badcf518ffd14559ef886ff7729b63b73b.tar.bz2
resolved merge conflict
Diffstat (limited to 'core/settings/security/security.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/security/security.cpp27
1 files changed, 19 insertions, 8 deletions
diff --git a/core/settings/security/security.cpp b/core/settings/security/security.cpp
index c4726b3..00ea105 100644
--- a/core/settings/security/security.cpp
+++ b/core/settings/security/security.cpp
@@ -113,3 +113,3 @@ void Security::show()
{
- valid=FALSE;
+ //valid=FALSE;
setEnabled(FALSE);
@@ -122,9 +122,13 @@ void Security::show()
} else {
- QString pc = enterPassCode(tr("Enter passcode"));
- if ( pc != passcode ) {
- QMessageBox::critical(this, tr("Passcode incorrect"),
- tr("The passcode entered is incorrect.\nAccess denied"));
- reject();
- return;
- }
+
+ if (!valid) // security passcode was not asked yet, so ask now
+ {
+ QString pc = enterPassCode(tr("Enter passcode"));
+ if ( pc != passcode ) {
+ QMessageBox::critical(this, tr("Passcode incorrect"),
+ tr("The passcode entered is incorrect.\nAccess denied"));
+ reject();
+ return;
+ }
+ }
}
@@ -215,2 +219,3 @@ void Security::loadUsers ( void )
}
+
void Security::toggleAutoLogin(bool val)
@@ -222,2 +227,6 @@ void Security::toggleAutoLogin(bool val)
}
+
+
+
+
void Security::setSyncNet(const QString& sn)
@@ -232,2 +241,3 @@ void Security::applySecurity()
if ( valid ) {
+<<<<<<< security.cpp
Config cfg("Security");
@@ -264,2 +274,3 @@ void Security::applySecurity()
cfg.writeEntry("Mode", syncModeCombo->currentItem()+1 );
+
}