[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kdepim/enterprise/kdepim/libkdepim
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2009-10-09 13:34:52
Message-ID: 1255095292.575503.3907.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1033101 by tmcguire:

Don't allow selecting entries without email addresses.
Fixes kolab/issue1499


 M  +7 -1      ldapsearchdialog.cpp  


--- branches/kdepim/enterprise/kdepim/libkdepim/ldapsearchdialog.cpp #1033100:1033101
@@ -99,7 +99,13 @@
   public:
     ContactListItem( QListView* parent, const KPIM::LdapAttrMap& attrs )
       : QListViewItem( parent ), mAttrs( attrs )
-    { }
+    {
+      const KPIM::LdapAttrValue &mailAttrs = attrs[ "mail" ];
+      if ( mailAttrs.isEmpty() ) {
+        setSelectable( false );
+        setEnabled( false );
+      }
+    }
 
     KPIM::LdapAttrMap mAttrs;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic