From 3e9b4a4dee67dd37a9bcdd90c00c5141550c189d Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 2 Jun 2021 21:20:01 +0200 Subject: [PATCH] GLScope redesign: when time offset is positive switch automatically to display memory index 01 to preserve correctness of display. Fixes #892 --- sdrgui/gui/glscopegui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdrgui/gui/glscopegui.cpp b/sdrgui/gui/glscopegui.cpp index c02f2206f..8f7690b7a 100644 --- a/sdrgui/gui/glscopegui.cpp +++ b/sdrgui/gui/glscopegui.cpp @@ -588,6 +588,12 @@ void GLScopeGUI::on_timeOfs_valueChanged(int value) m_timeOffset*10, (uint32_t) (m_glScope->getTraceSize() * (ui->trigPre->value()/100.0f)), ui->freerun->isChecked()); + + if (value > 0) + { + ui->mem->setValue(1); + ui->memText->setText("01"); + } } void GLScopeGUI::on_traceLen_valueChanged(int value)