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 21:29:52 +0000 |
commit | 68e84b142fb4d476e270a7d81dd5ab32acf9fdb5 (patch) | |
tree | 94cf7472d7b3646fb36cde297ec7562cf0c5cdb5 /radio | |
parent | 72eb23f64454c16301ae3856f122698b137b3038 (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
Diffstat (limited to 'radio')
-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) { |