From 5a58a5974cb4dd017e6989d5ebca876b5764b0df Mon Sep 17 00:00:00 2001 From: paule Date: Mon, 29 Jan 2007 07:15:46 +0000 Subject: Fix needToAuthenticate() so that its operation matches the doc comments --- (limited to 'libopie2') diff --git a/libopie2/opiesecurity/multiauthpassword.cpp b/libopie2/opiesecurity/multiauthpassword.cpp index 6c8944e..fb468d1 100644 --- a/libopie2/opiesecurity/multiauthpassword.cpp +++ b/libopie2/opiesecurity/multiauthpassword.cpp @@ -63,9 +63,9 @@ bool MultiauthPassword::needToAuthenticate(bool at_poweron) { Config cfg("Security"); cfg.setGroup("Misc"); - if ( !at_poweron && cfg.readBoolEntry("onStart", false) ) + if ( at_poweron && cfg.readBoolEntry("onStart", false) ) return true; - else if ( at_poweron && cfg.readBoolEntry("onResume", false) ) + else if ( !at_poweron && cfg.readBoolEntry("onResume", false) ) return true; else return false; -- cgit v0.9.0.2