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

Bruno Virlet <[email protected]> 27 Aug 2007 13:25:30 -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         
bruno.virlet gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



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

Always encrypt to self function was always on.
BUG: 93436


 M  +3 -1      kmcomposewin.cpp  


--- branches/KDE/3.5/kdepim/kmail/kmcomposewin.cpp #705214:705215
 @ -2245,7 +2245,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.readBoolEntry( "crypto-encrypt-to-self", true );
 }
 
 bool KMComposeWin::queryExit ()