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


Ignore:
Timestamp:
Jun 16, 2013, 10:20:24 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5189 r5214  
    9696  _runningPostProcessingPPP  = false;
    9797  _runningPostProcessingReqc = false;
     98  _postProcessing            = 0;
    9899
    99100  _pppSPPComboBox     = 0; // necessary for enableStartStop()
     
    27292730  enableStartStop();
    27302731
    2731   t_postProcessing* postProcessing = new t_postProcessing(this);
    2732   connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessingPPP()));
    2733   connect(postProcessing, SIGNAL(progress(int)), this, SLOT(slotPostProgress(int)));
    2734 
    2735   postProcessing->start();
     2732  delete _postProcessing;
     2733  _postProcessing = new t_postProcessing(this);
     2734  connect(_postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessingPPP()));
     2735  connect(_postProcessing, SIGNAL(progress(int)), this, SLOT(slotPostProgress(int)));
     2736  bncSettings settings;
     2737  if ( Qt::CheckState(settings.value("pppPlotCoordinates").toInt()) == Qt::Checked) {
     2738    connect(_postProcessing, SIGNAL(newPosition(bncTime, double, double, double)),
     2739            _bncFigurePPP, SLOT(slotNewPosition(bncTime, double, double, double)));
     2740  }
     2741#ifdef QT_WEBKIT
     2742  if (_mapWin) {
     2743    connect(_postProcessing, SIGNAL(newPosition(bncTime, double, double, double)),
     2744            _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2745  }
     2746#endif
     2747
     2748  _postProcessing->start();
    27362749#else
    27372750  QMessageBox::information(this, "Information",
     
    28752888              _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
    28762889    }
     2890    if (_postProcessing) {
     2891      connect(_postProcessing, SIGNAL(newPosition(bncTime, double, double, double)),
     2892              _mapWin, SLOT(slotNewPosition(bncTime, double, double, double)));
     2893    }
    28772894  }
    28782895  _mapWin->show();
Note: See TracChangeset for help on using the changeset viewer.