1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Channel Analyzer GUI: set sample rate via ScopeVis only

This commit is contained in:
f4exb 2018-10-16 00:08:33 +02:00
parent 1caf68eb9b
commit be36430057
3 changed files with 5 additions and 6 deletions

View File

@ -462,7 +462,6 @@ void ChannelAnalyzerGUI::setNewFinalRate()
QString s = QString::number(m_rate/1000.0, 'f', 1);
ui->spanText->setText(tr("%1 kS/s").arg(s));
ui->glScope->setSampleRate(m_rate);
m_scopeVis->setSampleRate(m_rate);
}

View File

@ -23,7 +23,7 @@
const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
QString("Channel Analyzer"),
QString("4.0.7"),
QString("4.2.3"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,

View File

@ -76,10 +76,10 @@ ScopeVis::~ScopeVis()
void ScopeVis::setSampleRate(int sampleRate)
{
if (sampleRate != m_sampleRate)
{
m_sampleRate = sampleRate;
if (m_glScope) m_glScope->setSampleRate(m_sampleRate);
m_sampleRate = sampleRate;
if (m_glScope) {
m_glScope->setSampleRate(m_sampleRate);
}
}