diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-12-29 16:41:11 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-12-29 16:41:11 -0500 |
commit | b9696a362febf1f8b660fe37e89b6dc2ac5459c6 (patch) | |
tree | 73d21f8b1da2fb39f3786283a073d6bc7979235e | |
parent | f525733f195051fdf82222b27d9408afa30bb064 (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.cpp | 2 |
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) { |