Changeset 243 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Oct 13, 2006, 9:41:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r240 r243 221 221 layout->addWidget(_logFileLineEdit, 10, 2, 1, 3); 222 222 layout->addWidget(_log, 11, 0, 1, 5); 223 224 _bncCaster = 0;225 223 } 226 224 … … 369 367 _actStop->setEnabled(true); 370 368 371 _ bncCaster = new bncCaster(_outFileLineEdit->text(),369 _global_caster = new bncCaster(_outFileLineEdit->text(), 372 370 _outPortLineEdit->text().toInt()); 373 371 374 connect(_ bncCaster, SIGNAL(getThreadErrors()),372 connect(_global_caster, SIGNAL(getThreadErrors()), 375 373 this, SLOT(slotGetThreadErrors())); 376 374 377 connect(_ bncCaster, SIGNAL(newMessage(const QByteArray&)),375 connect(_global_caster, SIGNAL(newMessage(const QByteArray&)), 378 376 this, SLOT(slotMessage(const QByteArray&))); 379 connect(_ bncCaster, SIGNAL(newMessage(const QByteArray&)),377 connect(_global_caster, SIGNAL(newMessage(const QByteArray&)), 380 378 (bncApp*)qApp, SLOT(slotMessage(const QByteArray&))); 381 382 _bncCaster->start();383 379 384 380 for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) { … … 399 395 SLOT(slotNewObs(const QByteArray&, Observation*))); 400 396 401 _ bncCaster->addGetThread(getThread);397 _global_caster->addGetThread(getThread); 402 398 403 399 getThread->start(); … … 412 408 QMessageBox::NoButton); 413 409 if (iRet == QMessageBox::Yes) { 414 _bncCaster->terminate(); 415 _bncCaster->wait(); 416 delete _bncCaster; 417 _bncCaster = 0; 410 delete _global_caster; _global_caster = 0; 418 411 _actGetData->setEnabled(true); 419 412 _actStop->setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.