Index: /trunk/FACT++/gui/FactGui.h
===================================================================
--- /trunk/FACT++/gui/FactGui.h	(revision 12114)
+++ /trunk/FACT++/gui/FactGui.h	(revision 12115)
@@ -806,4 +806,7 @@
 
         SetLedColor(fStatusDNSLed, version==0 ? kLedRed : kLedGreen, Time());
+
+        fShutdown->setEnabled(version!=0);
+        fShutdownAll->setEnabled(version!=0);
     }
 
@@ -2370,5 +2373,5 @@
     void SetFscValue(QDoubleSpinBox *box, const DimData &d, int idx, bool enable)
     {
-        box->setEnabled(enable);
+        //box->setEnabled(enable);
         if (!enable)
         {
@@ -2388,4 +2391,6 @@
     {
         const bool enable = d.size()>0 && CheckSize(d, 60*sizeof(float));
+        if (!enable)
+            return;
 
         QDoubleSpinBox *boxes[] = {
@@ -2441,4 +2446,6 @@
     {
         const bool enable = d.size()>0 && CheckSize(d, 31*sizeof(float));
+        if (!enable)
+            return;
 
         QDoubleSpinBox *boxes[] = {
@@ -2461,4 +2468,6 @@
     {
         const bool enable = d.size()>0 && CheckSize(d, 31*sizeof(float));
+        if (!enable)
+            return;
 
         QDoubleSpinBox *boxes[] = {
@@ -2648,14 +2657,14 @@
                 SetLedColor(fStatusMCPLed, kLedRed, time);
             if (s.index==3) // Connecting
-                SetLedColor(fStatusFTMLed, kLedOrange, time);
+                SetLedColor(fStatusMCPLed, kLedOrange, time);
             if (s.index==4) // Connected
-                SetLedColor(fStatusFTMLed, kLedYellow, time);
+                SetLedColor(fStatusMCPLed, kLedYellow, time);
             if (s.index==5) // Idle
-                SetLedColor(fStatusFTMLed, kLedGreen, time);
+                SetLedColor(fStatusMCPLed, kLedGreen, time);
 
             const bool configuring = s.index>=7 && s.index<=10;
 
             if (configuring) // Idle
-                SetLedColor(fStatusFTMLed, kLedGreen, time);
+                SetLedColor(fStatusMCPLed, kLedGreen, time);
 
             fMcpStartRun->setEnabled(s.index==5);
@@ -2686,6 +2695,6 @@
                 SetLedColor(fStatusFTMLed, kLedGreen, time);
 
-            fFtmStartRun->setEnabled(!configuring);
-            fFtmStopRun->setEnabled(!configuring);
+            fFtmStartRun->setEnabled(!configuring && enable);
+            fFtmStopRun->setEnabled(!configuring && enable);
 
             if (s.index==FTM::StateMachine::kConnected ||
@@ -2750,7 +2759,7 @@
 
             const bool configuring = s.index>=FAD::kConfiguring1;
-            fFadStart->setEnabled(!configuring);
-            fFadStop->setEnabled(!configuring);
-            fFadAbort->setEnabled(!configuring);
+            fFadStart->setEnabled(!configuring && enable);
+            fFadStop->setEnabled(!configuring && enable);
+            fFadAbort->setEnabled(!configuring && enable);
         }
 
@@ -2841,4 +2850,6 @@
 
             fLoggerWidget->setEnabled(enable);
+            fLoggerStart->setEnabled(enable);
+            fLoggerStop->setEnabled(enable);
         }
 
@@ -3759,4 +3770,5 @@
         fLoggerWidget->setEnabled(false);
         fBiasWidget->setEnabled(false);
+        fAuxWidget->setEnabled(false);
 
         fChatSend->setEnabled(false);
