[PC-BSD Commits] r145 - pcbsd/trunk/pcbsdusermanager

svn at pcbsd.org svn at pcbsd.org
Thu Mar 22 10:50:07 PST 2007


Author: tim
Date: 2007-03-22 19:50:07 +0100 (Thu, 22 Mar 2007)
New Revision: 145

Modified:
   pcbsd/trunk/pcbsdusermanager/CMakeLists.txt
   pcbsd/trunk/pcbsdusermanager/group.cpp
   pcbsd/trunk/pcbsdusermanager/simpledlgcode.cpp
Log:
- Cleaned group isMember function\n- Fixed an issue with group information not updating after applying certain settings.\n- Fixed a segfault by adding crypt to the linker settings

Modified: pcbsd/trunk/pcbsdusermanager/CMakeLists.txt
===================================================================
--- pcbsd/trunk/pcbsdusermanager/CMakeLists.txt	2007-03-20 17:16:23 UTC (rev 144)
+++ pcbsd/trunk/pcbsdusermanager/CMakeLists.txt	2007-03-22 18:50:07 UTC (rev 145)
@@ -36,7 +36,7 @@
 
 kde3_add_kpart(kcm_pcbsdusermanager ${um_SRCS})
 
-target_link_libraries(kcm_pcbsdusermanager ${QT_AND_KDECORE_LIBRARIES})
+target_link_libraries(kcm_pcbsdusermanager ${QT_AND_KDECORE_LIBRARIES} crypt)
 
 ### INSTALL ###
 

Modified: pcbsd/trunk/pcbsdusermanager/group.cpp
===================================================================
--- pcbsd/trunk/pcbsdusermanager/group.cpp	2007-03-20 17:16:23 UTC (rev 144)
+++ pcbsd/trunk/pcbsdusermanager/group.cpp	2007-03-22 18:50:07 UTC (rev 145)
@@ -56,11 +56,8 @@
 }
 
 bool Group::isMember(QString username) {
-    bool result = false;
-    if (members.contains(username) > 0) {
-	result = true;
-    }
-    return result;
+    if (members.contains(username) > 0) { return true; }
+    return false;
 }
 
 bool Group::getChanges() {

Modified: pcbsd/trunk/pcbsdusermanager/simpledlgcode.cpp
===================================================================
--- pcbsd/trunk/pcbsdusermanager/simpledlgcode.cpp	2007-03-20 17:16:23 UTC (rev 144)
+++ pcbsd/trunk/pcbsdusermanager/simpledlgcode.cpp	2007-03-22 18:50:07 UTC (rev 145)
@@ -38,7 +38,6 @@
 {
     this->back = back;
     userImage = QPixmap("/usr/local/share/icons/crystalsvg/48x48/kdm/user_male.png");
-    wheel = back->getGroup(0);
     systemChange = false;
     
     refreshUsers();
@@ -56,6 +55,7 @@
 
 void SimpleDlgCode::refreshUsers()
 {
+    wheel = back->getGroup(0);
     QStringList users = back->getAllUsers();
     users.sort();
     userList->clear();
@@ -75,6 +75,8 @@
 
 void SimpleDlgCode::getUserDetails(const QString& username)
 {
+    qDebug("Simple dialog, fetching information for: %s", username.ascii());
+    
     systemChange = true;
     User *user = back->getUser(QStringList::split(" ", username)[0]);
     



More information about the Commits mailing list