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

svn at pcbsd.org svn at pcbsd.org
Tue Feb 26 15:30:52 PST 2013


Author: kenmoore
Date: 2013-02-26 23:30:52 +0000 (Tue, 26 Feb 2013)
New Revision: 21657

Modified:
   pcbsd-projects/PCDM/pcdm-config.cpp
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Re-enable the restart/shutdown ability within the main PCDM UI. The return code is not properly being passed through xinit to leave it in the daemon.



Modified: pcbsd-projects/PCDM/pcdm-config.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-config.cpp	2013-02-26 23:06:28 UTC (rev 21656)
+++ pcbsd-projects/PCDM/pcdm-config.cpp	2013-02-26 23:30:52 UTC (rev 21657)
@@ -79,7 +79,7 @@
 }
 
 bool Config::useAutoLogin(){
-  qDebug() << "confStruct[3]:" << confStruct[3];
+  //qDebug() << "confStruct[3]:" << confStruct[3];
   if(confStruct[3].toLower()=="true"){ return TRUE; }
   else{ return FALSE; }	
 }

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-26 23:06:28 UTC (rev 21656)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-26 23:30:52 UTC (rev 21657)
@@ -261,7 +261,7 @@
 
   if(ret == QMessageBox::Yes){
     Backend::log("PCDM: Shutting down computer");
-    //system("shutdown -p now");
+    system("shutdown -p now");
     QCoreApplication::exit(2);
     close();
   }
@@ -278,7 +278,7 @@
 
   if(ret == QMessageBox::Yes){
     Backend::log("PCDM: Restarting computer");
-    //system("shutdown -r now");
+    system("shutdown -r now");
     QCoreApplication::exit(1);
     close();
   }



More information about the Commits mailing list