Changeset 3640 in ntrip for trunk/BNC/bncpppclient.cpp


Ignore:
Timestamp:
Jan 24, 2012, 11:25:59 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r3639 r3640  
    5454// Constructor
    5555////////////////////////////////////////////////////////////////////////////
    56 bncPPPclient::bncPPPclient(QByteArray staID, t_pppOpt* opt) {
     56bncPPPclient::bncPPPclient(QByteArray staID, t_pppOpt* opt, bool connectSlots) :
     57  bncEphUser(connectSlots) {
    5758
    5859  if (opt) {
     
    6970  _model = new bncModel(this);
    7071
    71   connect(this, SIGNAL(newMessage(QByteArray,bool)),
    72           ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool)));
    73 
    74   connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),
    75           this, SLOT(slotNewCorrections(QList<QString>)));
     72  if (connectSlots) {
     73    connect(this, SIGNAL(newMessage(QByteArray,bool)),
     74            ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool)));
     75
     76    connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),
     77            this, SLOT(slotNewCorrections(QList<QString>)));
     78  }
    7679}
    7780
Note: See TracChangeset for help on using the changeset viewer.