Changeset 4090 in ntrip


Ignore:
Timestamp:
Apr 30, 2012, 8:19:23 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4081 r4090  
    179179  QString oldMarkerName   = settings.value("reqcOldMarkerName").toString();
    180180  QString newMarkerName   = settings.value("reqcNewMarkerName").toString();
    181   if (oldMarkerName.isEmpty() ||
    182       QRegExp(oldMarkerName).exactMatch(obsFile.markerName())) {
    183     obsFile.setMarkerName(newMarkerName);
     181  if (!newMarkerName.isEmpty()) {
     182    if (oldMarkerName.isEmpty() ||
     183        QRegExp(oldMarkerName).exactMatch(obsFile.markerName())) {
     184      obsFile.setMarkerName(newMarkerName);
     185    }
    184186  }
    185187
    186188  QString oldAntennaName  = settings.value("reqcOldAntennaName").toString();
    187189  QString newAntennaName  = settings.value("reqcNewAntennaName").toString();
    188   if (oldAntennaName.isEmpty() ||
    189       QRegExp(oldAntennaName).exactMatch(obsFile.antennaName())) {
    190     obsFile.setAntennaName(newAntennaName);
     190  if (!newAntennaName.isEmpty()) {
     191    if (oldAntennaName.isEmpty() ||
     192        QRegExp(oldAntennaName).exactMatch(obsFile.antennaName())) {
     193      obsFile.setAntennaName(newAntennaName);
     194    }
    191195  }
    192196
    193197  QString oldReceiverType = settings.value("reqcOldReceiverName").toString();
    194198  QString newReceiverType = settings.value("reqcNewReceiverName").toString();
    195   if (oldReceiverType.isEmpty() ||
    196       QRegExp(oldReceiverType).exactMatch(obsFile.receiverType())) {
    197     obsFile.setReceiverType(newReceiverType);
     199  if (!newReceiverType.isEmpty()) {
     200    if (oldReceiverType.isEmpty() ||
     201        QRegExp(oldReceiverType).exactMatch(obsFile.receiverType())) {
     202      obsFile.setReceiverType(newReceiverType);
     203    }
    198204  }
    199205}
Note: See TracChangeset for help on using the changeset viewer.