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

svn at pcbsd.org svn at pcbsd.org
Wed Mar 13 10:14:37 PDT 2013


Author: kenmoore
Date: 2013-03-13 17:14:36 +0000 (Wed, 13 Mar 2013)
New Revision: 21844

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
Log:
Now the login widget should allow the single user system to be auto-selected properly, was a bug in the keyboard focus routine overwriting the previous setting



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-03-13 16:33:32 UTC (rev 21843)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-03-13 17:14:36 UTC (rev 21844)
@@ -221,9 +221,9 @@
   listUsers->setCurrentIndex(0);
   listUserBig->setCurrentRow(0);
   //Automatically select the user if there is only one
-  qDebug() << "Available Users:" << uList << uList.length() << idL;
   if(uList.length() == 1){
-    slotUserSelected();	  
+    qDebug() << "Single User System Detected";
+    slotUserSelected();	 
   }
 }
 
@@ -283,6 +283,10 @@
 }
 
 void LoginWidget::resetFocus(QString item){
+  //Check for appropriate action if not specified
+  if(item.isEmpty() && userSelected ){ item="password"; }
+  else if(item.isEmpty() && !userSelected ){ item="userlist"; }	  
+  //Set the proper keyboard focus
   if(item == "userlist"){
     if(userSelected){ listUsers->setFocus(); }
     else{ listUserBig->setFocus(); }



More information about the Commits mailing list