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

svn at pcbsd.org svn at pcbsd.org
Wed Mar 13 10:24:56 PDT 2013


Author: kenmoore
Date: 2013-03-13 17:24:56 +0000 (Wed, 13 Mar 2013)
New Revision: 21845

Modified:
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Change when the loginwidget signals are connected to the main gui slots, this should fix the initial DE selection if on a single user system



Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-03-13 17:14:36 UTC (rev 21844)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-03-13 17:24:56 UTC (rev 21845)
@@ -156,6 +156,12 @@
     
     //Username/Password/Login widget
     loginW = new LoginWidget;
+    //Connect the signals/slots
+    connect(loginW,SIGNAL(loginRequested(QString,QString)),this,SLOT(slotStartLogin(QString,QString)));
+    connect(loginW,SIGNAL(escapePressed()),this,SLOT(slotShutdownComputer()));
+    connect(loginW,SIGNAL(UserSelected(QString)), this, SLOT(slotUserSelected(QString)) );
+    connect(loginW,SIGNAL(UserChanged(QString)), this, SLOT(slotUserChanged(QString)) );
+    //Set the available users
     loginW->setUsernames(Backend::getSystemUsers()); //add in the detected users
     if(!lastUser.isEmpty()){ loginW->setCurrentUser(lastUser); } //set the previously used user
     //Set Icons from theme
@@ -175,11 +181,6 @@
                       currentTheme->itemLocation("login","col"), \
                       currentTheme->itemLocation("login","rowspan"), \
                       currentTheme->itemLocation("login","colspan"), Qt::AlignCenter);
-    //Connect the signals/slots
-    connect(loginW,SIGNAL(loginRequested(QString,QString)),this,SLOT(slotStartLogin(QString,QString)));
-    connect(loginW,SIGNAL(escapePressed()),this,SLOT(slotShutdownComputer()));
-    connect(loginW,SIGNAL(UserSelected(QString)), this, SLOT(slotUserSelected(QString)) );
-    connect(loginW,SIGNAL(UserChanged(QString)), this, SLOT(slotUserChanged(QString)) );
     
     //----Desktop Environment Switcher
     //Create the switcher



More information about the Commits mailing list