Changeset 5187 in ntrip for trunk/BNC/src/bncwindow.cpp


Ignore:
Timestamp:
Jun 9, 2013, 10:48:43 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5186 r5187  
    21372137////////////////////////////////////////////////////////////////////////////
    21382138void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) {
     2139  _threads = threads;
     2140
    21392141  _bncFigure->updateMountPoints();
    21402142  _bncFigureLate->updateMountPoints();
     
    21712173                  SLOT(slotNewPosition(bncTime, double, double, double)));
    21722174        }
     2175
     2176        if (_mapWin) {
     2177          disconnect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     2178                     _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2179          connect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     2180                  _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2181        }
     2182
    21732183        break;
    21742184      }
     
    28592869  if (!_mapWin) {
    28602870    _mapWin = new bncMapWin(this);
     2871    QListIterator<bncGetThread*> it(_threads);
     2872    while (it.hasNext()) {
     2873      bncGetThread* thread = it.next();
     2874      connect(thread, SIGNAL(newPosition(bncTime, double, double, double)),
     2875              _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2876    }
    28612877  }
    28622878  _mapWin->show();
Note: See TracChangeset for help on using the changeset viewer.