From 4d313925fa05e14c23712a195226f93af5f4d155 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 10 May 2019 22:18:05 +0200 Subject: [PATCH] Assert added --- companion/src/simulation/simulatorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/simulation/simulatorwidget.cpp b/companion/src/simulation/simulatorwidget.cpp index 216b5fe9c..be46d5476 100644 --- a/companion/src/simulation/simulatorwidget.cpp +++ b/companion/src/simulation/simulatorwidget.cpp @@ -61,7 +61,6 @@ SimulatorWidget::SimulatorWidget(QWidget * parent, SimulatorInterface * simulato #ifdef JOYSTICKS , joystick(NULL) #endif - { ui->setupUi(this); @@ -522,6 +521,7 @@ void SimulatorWidget::shutdown() void SimulatorWidget::setRadioProfileId(int value) { + Q_ASSERT(value >= 0); radioProfileId = value; emit simulatorVolumeGainChange(g.profile[radioProfileId].volumeGain()); }