summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-12-29 16:41:11 -0500
committerScott Murray <scott.murray@konsulko.com>2019-12-29 16:41:11 -0500
commitb9696a362febf1f8b660fe37e89b6dc2ac5459c6 (patch)
tree73d21f8b1da2fb39f3786283a073d6bc7979235e
parentf525733f195051fdf82222b27d9408afa30bb064 (diff)
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 <scott.murray@konsulko.com> Change-Id: I900be56eb5f123e16cf9f25e0c9cfe9a9d6466eb
-rw-r--r--radio/radio.cpp2
1 files changed, 2 insertions, 0 deletions
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)
{