Changeset 7520 in ntrip


Ignore:
Timestamp:
Oct 19, 2015, 12:48:47 PM (9 years ago)
Author:
stuerze
Message:

minor changes to allow directory entries in ppp panel with and wihout final slash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/pppRun.cpp

    r7506 r7520  
    159159  bool v3filenames = settings.value("PPP/v3filenames").toBool();
    160160  QString logFileSkl = settings.value("PPP/logPath").toString();
     161  int l = logFileSkl.length();
    161162  if (logFileSkl.isEmpty()) {
    162163    _logFile = 0;
    163164  }
    164165  else {
     166    if (l && logFileSkl[l-1] != QDir::separator() ) {
     167      logFileSkl += QDir::separator();
     168    }
    165169    if (v3filenames) {
    166170      logFileSkl = logFileSkl + fullRoverName + "${V3}" + ".ppp";
     
    173177
    174178  QString nmeaFileSkl = settings.value("PPP/nmeaPath").toString();
     179  l = nmeaFileSkl.length();
    175180  if (nmeaFileSkl.isEmpty()) {
    176181    _nmeaFile = 0;
    177182  }
    178183  else {
     184    if (l > 0 && nmeaFileSkl[l-1] != QDir::separator() ) {
     185      nmeaFileSkl += QDir::separator();
     186    }
    179187    if (v3filenames) {
    180188      nmeaFileSkl = nmeaFileSkl + fullRoverName + "${V3}" + ".nmea";
     
    187195
    188196  QString snxtroFileSkl = settings.value("PPP/snxtroPath").toString();
     197  l = snxtroFileSkl.length();
    189198  if (snxtroFileSkl.isEmpty()) {
    190199    _snxtroFile = 0;
    191200  }
    192201  else {
     202    if (l > 0 && snxtroFileSkl[l-1] != QDir::separator() ) {
     203      snxtroFileSkl += QDir::separator();
     204    }
    193205    if (v3filenames) {
    194206      snxtroFileSkl = snxtroFileSkl + fullRoverName + "${V3}" + ".tra";
Note: See TracChangeset for help on using the changeset viewer.