[PC-BSD Commits] r17604 - pcbsd/current/src-qt4/pc-servicemanager

svn at pcbsd.org svn at pcbsd.org
Tue Jul 3 10:33:29 PDT 2012


Author: kris
Date: 2012-07-03 17:33:29 +0000 (Tue, 03 Jul 2012)
New Revision: 17604

Modified:
   pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp
Log:

Fix a bug stopping services, and also display "Checking..." after, until
the current status can be determined



Modified: pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp	2012-07-03 17:28:41 UTC (rev 17603)
+++ pcbsd/current/src-qt4/pc-servicemanager/servicemanager.cpp	2012-07-03 17:33:29 UTC (rev 17604)
@@ -91,11 +91,15 @@
       args << "chroot" << wIP << item->text(0) + " start";
     }
 
+
     // Show the progress GUI
     progressUI *servAction = new progressUI;
     servAction->startServ(prog, args);
     servAction->show();
 
+    // Set item staus to pending
+    item->setText(3, tr("Checking...") );
+
     listSelectionChanged();
 
 }
@@ -118,7 +122,7 @@
 
     if ( wDir.isEmpty() ) {
       prog = item->text(0);
-      args << "start";
+      args << "stop";
     } else {
       prog = "warden";
       args << "chroot" << wIP << item->text(0) + " stop";
@@ -129,6 +133,9 @@
     servAction->startServ(prog, args);
     servAction->show();
 
+    // Set item staus to pending
+    item->setText(3, tr("Checking...") );
+
     listSelectionChanged();
 
 }
@@ -163,6 +170,9 @@
     servAction->startServ(prog, args);
     servAction->show();
 
+    // Set item staus to pending
+    item->setText(3, tr("Checking...") );
+
     listSelectionChanged();
 
 }
@@ -326,7 +336,7 @@
 
     // At the end! Restart scanning in a few seconds
     currentCheckRunningItem = new QTreeWidgetItemIterator(listServices);
-    QTimer::singleShot(8000, this, SLOT(checkRunning()));
+    QTimer::singleShot(5000, this, SLOT(checkRunning()));
 
 }
 



More information about the Commits mailing list