Index: /trunk/BNC/bncwindow.cpp
===================================================================
--- /trunk/BNC/bncwindow.cpp	(revision 2184)
+++ /trunk/BNC/bncwindow.cpp	(revision 2185)
@@ -338,4 +338,5 @@
   _pppMountLineEdit    = new QLineEdit(settings.value("pppMount").toString());
   _pppNMEALineEdit     = new QLineEdit(settings.value("nmeaFile").toString());
+  _pppNMEAPortLineEdit = new QLineEdit(settings.value("nmeaPort").toString());
   _pppRefCrdXLineEdit  = new QLineEdit(settings.value("pppRefCrdX").toString());
   _pppRefCrdYLineEdit  = new QLineEdit(settings.value("pppRefCrdY").toString());
@@ -692,7 +693,9 @@
   pppLayout->addWidget(new QLabel("NMEA file (full path)"),  3, 0);
   pppLayout->addWidget(_pppNMEALineEdit,                     3, 1, 1, 6);
-  pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),4, 0,1,15);
-  pppLayout->addWidget(new QLabel("    "),                   5, 0);
+  pppLayout->addWidget(new QLabel("NMEA port"),              4, 0);
+  pppLayout->addWidget(_pppNMEAPortLineEdit,                 4, 1, 1, 2);
+  pppLayout->addWidget(new QLabel("Coordinates from Precise Point Positioning (PPP)."),5, 0,1,15);
   pppLayout->addWidget(new QLabel("    "),                   6, 0);
+  pppLayout->addWidget(new QLabel("    "),                   7, 0);
   pppgroup->setLayout(pppLayout);
 
@@ -1005,4 +1008,5 @@
   settings.setValue("pppMount",    _pppMountLineEdit->text());
   settings.setValue("nmeaFile",    _pppNMEALineEdit->text());
+  settings.setValue("nmeaPort",    _pppNMEAPortLineEdit->text());
   settings.setValue("pppRefCrdX",  _pppRefCrdXLineEdit->text());
   settings.setValue("pppRefCrdY",  _pppRefCrdYLineEdit->text());
@@ -1545,4 +1549,5 @@
     if (!_pppMountLineEdit->text().isEmpty()) {
       _pppNMEALineEdit->setPalette(palette_white);
+      _pppNMEAPortLineEdit->setPalette(palette_white);
       _pppRefCrdXLineEdit->setPalette(palette_white);
       _pppRefCrdYLineEdit->setPalette(palette_white);
@@ -1554,4 +1559,5 @@
       _pppGLONASSCheckBox->setPalette(palette_gray);
       _pppNMEALineEdit->setEnabled(true);
+      _pppNMEAPortLineEdit->setEnabled(true);
       _pppRefCrdXLineEdit->setEnabled(true);
       _pppRefCrdYLineEdit->setEnabled(true);
@@ -1564,4 +1570,5 @@
     } else {
       _pppNMEALineEdit->setPalette(palette_gray);
+      _pppNMEAPortLineEdit->setPalette(palette_gray);
       _pppRefCrdXLineEdit->setPalette(palette_gray);
       _pppRefCrdYLineEdit->setPalette(palette_gray);
@@ -1572,4 +1579,5 @@
       _pppGLONASSCheckBox->setPalette(palette_gray);
       _pppNMEALineEdit->setEnabled(false);
+      _pppNMEAPortLineEdit->setEnabled(false);
       _pppRefCrdXLineEdit->setEnabled(false);
       _pppRefCrdYLineEdit->setEnabled(false);
Index: /trunk/BNC/bncwindow.h
===================================================================
--- /trunk/BNC/bncwindow.h	(revision 2184)
+++ /trunk/BNC/bncwindow.h	(revision 2185)
@@ -115,4 +115,5 @@
     QLineEdit* _pppMountLineEdit;
     QLineEdit* _pppNMEALineEdit;
+    QLineEdit* _pppNMEAPortLineEdit;
     QLineEdit* _pppRefCrdXLineEdit;
     QLineEdit* _pppRefCrdYLineEdit;
