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

svn at pcbsd.org svn at pcbsd.org
Thu Sep 27 08:10:12 PDT 2012


Author: kenmoore
Date: 2012-09-27 15:10:12 +0000 (Thu, 27 Sep 2012)
New Revision: 19551

Modified:
   pcbsd-projects/PCDM/main.cpp
Log:
Change where we initialize the application variable for PCDM.



Modified: pcbsd-projects/PCDM/main.cpp
===================================================================
--- pcbsd-projects/PCDM/main.cpp	2012-09-27 15:01:30 UTC (rev 19550)
+++ pcbsd-projects/PCDM/main.cpp	2012-09-27 15:10:12 UTC (rev 19551)
@@ -10,7 +10,7 @@
 #include "pcdm-gui.h"
 #include "pcdm-backend.h"
 #include "pcdm-config.h"
-#include "pcdm-xprocess.h"
+//#include "pcdm-xprocess.h"
 
 #define TMPLANGFILE QString("/tmp/.PCDMLang")
 
@@ -29,22 +29,25 @@
   // Load the Desired Theme
   Theme::loadTheme(Config::themeFile());
 
+  // Startup the main application
+  QApplication a(argc,argv); 
+  
   // Show our splash screen, so the user doesn't freak that that it takes a few seconds to show up
+  qDebug() << "Starting splash screen";
   QSplashScreen splash;
   if(Theme::useSplashscreen()){
     splash.setPixmap( QPixmap(Theme::splashscreen()) ); //load the splashscreen file
   }
   splash.show();
-    
+   qDebug() << "starting autologin check"; 
   if( ALtriggered && Config::useAutoLogin() ){
     //Setup the Auto Login
     Backend::startAutoLogin();
     splash.close();
   }else{
+	  qDebug() << "starting PCDM GUI";
     // ------START THE PCDM GUI-------
     
-    // Startup the main application
-    QApplication a(argc,argv); 
     // Check what directory our app is in
     QString appDir = "/usr/local/share/PCDM";
     // Load the translator



More information about the Commits mailing list