Browse Source

sdrgui: Initialize device selection state

Initialize selected device sequence and item index in DeviceUISet.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
3f76b8979a
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 4
      sdrgui/device/deviceuiset.cpp

4
sdrgui/device/deviceuiset.cpp

@ -47,7 +47,9 @@ @@ -47,7 +47,9 @@
#include "deviceuiset.h"
DeviceUISet::DeviceUISet(int deviceSetIndex, DeviceSet *deviceSet)
DeviceUISet::DeviceUISet(int deviceSetIndex, DeviceSet *deviceSet) :
m_selectedDeviceSequence(0),
m_selectedDeviceItemImdex(0)
{
m_spectrum = new GLSpectrum();
m_spectrum->setIsDeviceSpectrum(true);

Loading…
Cancel
Save