Changeset 3041 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Feb 25, 2011, 2:17:45 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r2855 r3041  
    113113  // Log File
    114114  // --------
     115  _append = Qt::CheckState(settings.value("fileAppend").toInt()) == Qt::Checked;
     116
    115117  QIODevice::OpenMode oMode;
    116   if (Qt::CheckState(settings.value("fileAppend").toInt()) == Qt::Checked) {
     118  if (_append) {
    117119    oMode = QIODevice::WriteOnly | QIODevice::Unbuffered | QIODevice::Append;
    118120  }
     
    652654    }
    653655    if (_sp3) {
    654       _sp3->write(GPSweek, GPSweeks, prn, xx);
     656      _sp3->write(GPSweek, GPSweeks, prn, xx, _append);
    655657    }
    656658  }
Note: See TracChangeset for help on using the changeset viewer.