[Bug 93436] Option "Encrypt always for yourself" is always enabled

Bruno Virlet <[email protected]> 27 Aug 2007 13:31:45 -0000
Newsgroups gmane.comp.kde.devel.kmail
Message-ID <[email protected]>
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=93436         




------- Additional Comments From bruno.virlet gmail com  2007-08-27 15:31 -------
SVN commit 705217 by bvirlet:

Port r705205 to enterprise branch.

CCBUG: 93436


 M  +3 -1      kmcomposewin.cpp  


--- branches/kdepim/enterprise/kdepim/kmail/kmcomposewin.cpp #705216:705217
 @ -2260,7 +2260,9  @
 }
 
 bool KMComposeWin::encryptToSelf() const {
-  return !Kpgp::Module::getKpgp() || Kpgp::Module::getKpgp()->encryptToSelf();
+//  return !Kpgp::Module::getKpgp() || Kpgp::Module::getKpgp()->encryptToSelf();
+  KConfigGroup group( KMKernel::config(), "Composer" );
+  return group.readEntry( "crypto-encrypt-to-self", true );
 }
 
 bool KMComposeWin::queryExit ()