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

svn at pcbsd.org svn at pcbsd.org
Fri Feb 15 17:31:29 PST 2013


Author: kenmoore
Date: 2013-02-16 01:31:28 +0000 (Sat, 16 Feb 2013)
New Revision: 21567

Modified:
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Fix the desktop switcher by providing a default icon if none given/available



Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-16 01:26:06 UTC (rev 21566)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-16 01:31:28 UTC (rev 21567)
@@ -378,10 +378,13 @@
   for(int i=0; i<deList.length(); i++){
     QString deIcon = Backend::getDesktopIcon(deList[i]);
     if( deIcon.isEmpty() ){ deIcon = currentTheme->itemIcon("desktop"); } //set the default icon if none given
+    if( !QFile::exists(deIcon) ){ deIcon = ":/images/desktop.png"; }
     deSwitcher->addItem( deList[i], deIcon, Backend::getDesktopComment(deList[i]) );
   }
     //Set the switcher to the last used desktop environment
-    //deSwitcher->setCurrentItem("kde3"); 
-
+    //deSwitcher->setCurrentItem("kde3");
+    
+  //Always make sure that the login widget has focus after re-translating
+  loginW->resetFocus();
 }
 



More information about the Commits mailing list