Changeset 758 in ntrip for trunk/BNS/bnswindow.cpp


Ignore:
Timestamp:
Mar 30, 2008, 5:47:55 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnswindow.cpp

    r757 r758  
    5858// Constructor
    5959////////////////////////////////////////////////////////////////////////////
    60 bnsWindow::bnsWindow(t_bns* bns) {
    61 
    62   _bns = bns;
    63 
    64   connect(bns, SIGNAL(newMessage(QByteArray)),
    65           this, SLOT(slotMessage(const QByteArray)));
     60bnsWindow::bnsWindow() {
     61
     62  _bns = 0;
    6663
    6764  QSettings settings;
     
    292289    _actStart->setEnabled(true);
    293290    _actStop->setEnabled(false);
     291    delete _bns;
     292    _bns = 0;
    294293  }
    295294}
     
    303302  _actStop->setEnabled(true);
    304303
     304  _bns = new t_bns(0);
     305  connect(_bns, SIGNAL(newMessage(QByteArray)),
     306          this, SLOT(slotMessage(const QByteArray)));
    305307  _bns->start();
    306308}
Note: See TracChangeset for help on using the changeset viewer.