[PC-BSD Commits] r21688 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Fri Mar 1 11:06:59 PST 2013


Author: kenmoore
Date: 2013-03-01 19:06:59 +0000 (Fri, 01 Mar 2013)
New Revision: 21688

Modified:
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Oops, the last change was being overwritten a moment later. fixed now



Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-03-01 19:05:11 UTC (rev 21687)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-03-01 19:06:59 UTC (rev 21688)
@@ -158,14 +158,12 @@
     loginW = new LoginWidget;
     loginW->setUsernames(Backend::getSystemUsers()); //add in the detected users
     if(!lastUser.isEmpty()){ loginW->setCurrentUser(lastUser); } //set the previously used user
-    slotUserChanged(loginW->currentUsername()); //Make sure that we have the correct icon
     //Set Icons from theme
     tmpIcon = currentTheme->itemIcon("login");
     if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/next.png"; }
     loginW->changeButtonIcon("login",tmpIcon, currentTheme->itemIconSize("login"));
     tmpIcon = currentTheme->itemIcon("user");
-    if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/user.png"; }
-    loginW->changeButtonIcon("display",tmpIcon, currentTheme->itemIconSize("user"));
+    slotUserChanged(loginW->currentUsername()); //Make sure that we have the correct user icon
     tmpIcon = currentTheme->itemIcon("password");
     if(!QFile::exists(tmpIcon) || tmpIcon.isEmpty() ){ tmpIcon=":/images/password.png"; }
     loginW->changeButtonIcon("pwview",tmpIcon, currentTheme->itemIconSize("password"));



More information about the Commits mailing list