Index: trunk/BNC/bncwindow.cpp
===================================================================
--- trunk/BNC/bncwindow.cpp	(revision 1446)
+++ trunk/BNC/bncwindow.cpp	(revision 1447)
@@ -581,10 +581,14 @@
   connect(_corrPathLineEdit, SIGNAL(textChanged(const QString &)),
           this, SLOT(bncText(const QString &)));
+  connect(_corrPortLineEdit, SIGNAL(textChanged(const QString &)),
+          this, SLOT(bncText(const QString &)));
   if (_corrPathLineEdit->text().isEmpty()) { 
     _corrIntrComboBox->setStyleSheet("background-color: lightGray");
     _corrPortLineEdit->setStyleSheet("background-color: lightGray");
-    _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
     _corrIntrComboBox->setEnabled(false);
     _corrPortLineEdit->setEnabled(false);
+  }
+  if (_corrPortLineEdit->text().isEmpty()) { 
+    _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
     _corrTimeSpinBox->setEnabled(false);
   }
@@ -1243,17 +1247,27 @@
   if (aogroup->currentIndex() == 4) {
     if (!isEmpty) {
+      if (!_corrPathLineEdit->text().isEmpty()) {
+      _corrIntrComboBox->setStyleSheet("background-color: white");
       _corrPortLineEdit->setStyleSheet("background-color: white");
+      _corrIntrComboBox->setEnabled(true);
+      _corrPortLineEdit->setEnabled(true);
+      }
+      if (!_corrPortLineEdit->text().isEmpty()) {
       _corrTimeSpinBox->setStyleSheet("background-color: white");
-      _corrIntrComboBox->setStyleSheet("background-color: white");
-      _corrPortLineEdit->setEnabled(true);
       _corrTimeSpinBox->setEnabled(true);
-      _corrIntrComboBox->setEnabled(true);
+      }
     } else {
+      if (_corrPathLineEdit->text().isEmpty()) {
+      _corrIntrComboBox->setStyleSheet("background-color: lightGray");
       _corrPortLineEdit->setStyleSheet("background-color: lightGray");
       _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
-      _corrIntrComboBox->setStyleSheet("background-color: lightGray");
+      _corrIntrComboBox->setEnabled(false);
       _corrPortLineEdit->setEnabled(false);
       _corrTimeSpinBox->setEnabled(false);
-      _corrIntrComboBox->setEnabled(false);
+      }
+      if (_corrPortLineEdit->text().isEmpty()) {
+      _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
+      _corrTimeSpinBox->setEnabled(false);
+      }
     }
   }
