Changeset 7280 in ntrip for trunk


Ignore:
Timestamp:
Sep 15, 2015, 10:17:16 AM (9 years ago)
Author:
weber
Message:

Avoid error message through opening log file only if file name is specified

File:
1 edited

Legend:

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

    r6954 r7280  
    9494  // Open Log File
    9595  // -------------
    96   _logFile = new QFile(_logFileName);
    97   if (_logFile->open(QIODevice::WriteOnly | QIODevice::Text)) {
    98     _log = new QTextStream();
    99     _log->setDevice(_logFile);
     96  if (!_logFileName.isEmpty()) {
     97    _logFile = new QFile(_logFileName);
     98    if (_logFile->open(QIODevice::WriteOnly | QIODevice::Text)) {
     99      _log = new QTextStream();
     100      _log->setDevice(_logFile);
     101    }
    100102  }
    101103
Note: See TracChangeset for help on using the changeset viewer.