From b9696a362febf1f8b660fe37e89b6dc2ac5459c6 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sun, 29 Dec 2019 16:41:11 -0500 Subject: radio: Make sure min/max frequency are initialized Initialize the min/max frequency to zero so they don't show random values before the binding provides the real limits. Bug-AGL: SPEC-3041 Signed-off-by: Scott Murray Change-Id: I900be56eb5f123e16cf9f25e0c9cfe9a9d6466eb --- radio/radio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/radio.cpp b/radio/radio.cpp index 2367b20..6813d08 100644 --- a/radio/radio.cpp +++ b/radio/radio.cpp @@ -25,6 +25,8 @@ Radio::Radio (QUrl &url, QQmlContext *context, QObject * parent) : m_mloop(nullptr), m_band(1), m_frequency(0), + m_minFrequency(0), + m_maxFrequency(0), m_playing(false), m_scanning(false) { -- cgit 1.2.3-korg