Changeset 4793 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 28, 2012, 11:38:57 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4765 r4793  
    135135  _confInterval = -1;
    136136#ifdef RTROVER_INTERFACE
     137  if (!settings.value("rtroverMode").toString().isEmpty()) {
    137138    _bncRtrover = new t_bncRtrover();
    138139    _bncRtrover->start();
     140  }
     141  else {
     142    _bncRtrover = 0;
     143  }
    139144#endif
    140145}
     
    161166  delete _epochs;
    162167#ifdef RTROVER_INTERFACE
    163   _bncRtrover->quit();
    164   _bncRtrover->deleteLater();
     168  if (_bncRtrover) {
     169    _bncRtrover->quit();
     170    _bncRtrover->deleteLater();
     171  }
    165172#endif
    166173}
     
    280287
    281288#ifdef RTROVER_INTERFACE
    282   connect(getThread, SIGNAL(newObs(QByteArray, bool, t_obs)),
    283           _bncRtrover, SLOT(slotNewObs(QByteArray, bool, t_obs)));
     289  if (_bncRtrover) {
     290    connect(getThread, SIGNAL(newObs(QByteArray, bool, t_obs)),
     291            _bncRtrover, SLOT(slotNewObs(QByteArray, bool, t_obs)));
     292  }
    284293#endif
    285294
Note: See TracChangeset for help on using the changeset viewer.