diff --git a/mainwindow.cpp b/mainwindow.cpp index 1cf4b981e..79030e0dc 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -982,8 +982,6 @@ void MainWindow::dataSink(qint64 frames) QByteArray bafname = fname.toLatin1(); const char *c_fname = bafname.data(); int len=fname.length(); - m_bUseRef=m_wideGraph->useRef(); - refspectrum_(&dec_data.d2[k-3456],&m_bRefSpec,&m_bUseRef,c_fname,len); if(m_diskData) { dec_data.params.ndiskdat=1; @@ -996,6 +994,9 @@ void MainWindow::dataSink(qint64 frames) return; } + m_bUseRef=m_wideGraph->useRef(); + refspectrum_(&dec_data.d2[k-3456],&m_bRefSpec,&m_bUseRef,c_fname,len); + // Get power, spectrum, and ihsym int trmin=m_TRperiod/60; // int k (frames - 1);