Assert added
This commit is contained in:
@@ -61,7 +61,6 @@ SimulatorWidget::SimulatorWidget(QWidget * parent, SimulatorInterface * simulato
|
|||||||
#ifdef JOYSTICKS
|
#ifdef JOYSTICKS
|
||||||
, joystick(NULL)
|
, joystick(NULL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
@@ -522,6 +521,7 @@ void SimulatorWidget::shutdown()
|
|||||||
|
|
||||||
void SimulatorWidget::setRadioProfileId(int value)
|
void SimulatorWidget::setRadioProfileId(int value)
|
||||||
{
|
{
|
||||||
|
Q_ASSERT(value >= 0);
|
||||||
radioProfileId = value;
|
radioProfileId = value;
|
||||||
emit simulatorVolumeGainChange(g.profile[radioProfileId].volumeGain());
|
emit simulatorVolumeGainChange(g.profile[radioProfileId].volumeGain());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user