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

svn at pcbsd.org svn at pcbsd.org
Fri Mar 1 10:02:25 PST 2013


Author: kenmoore
Date: 2013-03-01 18:02:25 +0000 (Fri, 01 Mar 2013)
New Revision: 21682

Modified:
   pcbsd-projects/PCDM/loginWidget.cpp
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Add some debugging to try and find the seg fault



Modified: pcbsd-projects/PCDM/loginWidget.cpp
===================================================================
--- pcbsd-projects/PCDM/loginWidget.cpp	2013-03-01 17:36:59 UTC (rev 21681)
+++ pcbsd-projects/PCDM/loginWidget.cpp	2013-03-01 18:02:25 UTC (rev 21682)
@@ -197,7 +197,6 @@
   int index = idL.indexOf(id);
   if(index == -1){
     qDebug() << "LoginWidget: Item does not exist -" << id;
-    return;
   }else{
     listUsers->setCurrentIndex(index);
     listUserBig->setCurrentRow(index);
@@ -205,6 +204,7 @@
 }
 
 void LoginWidget::setUsernames(QStringList uList){
+  if(uList.isEmpty()){ return; }
   //Make sure that the two user widgets are identical
   listUsers->clear();
   listUsers->addItems(uList);

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-03-01 17:36:59 UTC (rev 21681)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-03-01 18:02:25 UTC (rev 21682)
@@ -17,6 +17,8 @@
 
 PCDMgui::PCDMgui() : QMainWindow()
 {
+    lastUser.clear();
+    lastDE.clear();
     //Load the Theme
     loadTheme();
     //Create the GUI based upon the current Theme
@@ -153,6 +155,7 @@
     }
     
     //Username/Password/Login widget
+    qDebug() << "Creating login widget";
     loginW = new LoginWidget;
     loginW->setUsernames(Backend::getSystemUsers()); //add in the detected users
     if(!lastUser.isEmpty()){ loginW->setCurrentUser(lastUser); } //set the previously used user
@@ -181,6 +184,7 @@
     	    
     //----Desktop Environment Switcher
     //Create the switcher
+    qDebug() << "Creating desktop switcher";
     deSwitcher = new FancySwitcher(this, !currentTheme->itemIsVertical("desktop") );
     QSize deSize = currentTheme->itemIconSize("desktop");
     deSwitcher->setIconSize(deSize.height());



More information about the Commits mailing list