summaryrefslogtreecommitdiffstats
path: root/src/ldapmgr.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-31 01:08:31 -0500
committerTimothy Pearson <[email protected]>2012-05-31 01:08:31 -0500
commit9dc612fd768cd0ec40f7458f2f69534c1acd417a (patch)
tree585232723cb3168c6f9b959281bf486644daaa7e /src/ldapmgr.cpp
parent6d3279772de658a37abc06c74726c72af9c0a484 (diff)
downloadkcmldapmanager-9dc612fd768cd0ec40f7458f2f69534c1acd417a.tar.gz
kcmldapmanager-9dc612fd768cd0ec40f7458f2f69534c1acd417a.zip
Fix user editing dialog
Diffstat (limited to 'src/ldapmgr.cpp')
-rw-r--r--src/ldapmgr.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ldapmgr.cpp b/src/ldapmgr.cpp
index 26007dc..4c153e3 100644
--- a/src/ldapmgr.cpp
+++ b/src/ldapmgr.cpp
@@ -38,6 +38,7 @@
#include <kcombobox.h>
#include <kmessagebox.h>
#include <klineedit.h>
+#include <kiconloader.h>
#include <tdesu/process.h>
@@ -84,6 +85,10 @@ LDAPConfig::LDAPConfig(TQWidget *parent, const char *name, const TQStringList&)
base->machine_name->setEnabled(false);
base->machine_author->setEnabled(false);
+ base->user_icon->setPixmap(SmallIcon("personal.png"));
+ base->group_icon->setPixmap(SmallIcon("kdmconfig.png"));
+ base->machine_icon->setPixmap(SmallIcon("system.png"));
+
connect(base->user_ldapRealm, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(connectToRealm(const TQString&)));
connect(base->group_ldapRealm, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(connectToRealm(const TQString&)));
connect(base->machine_ldapRealm, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(connectToRealm(const TQString&)));
@@ -457,7 +462,9 @@ void LDAPConfig::groupHighlighted() {
base->group_memberList->clear();
for ( TQStringList::Iterator it = group.userlist.begin(); it != group.userlist.end(); ++it ) {
LDAPUserInfo user = findUserByDistinguishedName(*it);
- (void)new TQListViewItem(base->group_memberList, user.name, user.commonName, TQString("%1").arg(user.uid));
+ if (user.name != "") {
+ (void)new TQListViewItem(base->group_memberList, user.name, user.commonName, TQString("%1").arg(user.uid));
+ }
}
processLockouts();