From b761f7b0e9367c089b44d34bd7e4d77819ffedd0 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 24 Aug 2019 14:02:08 +0200 Subject: [PATCH] switch up is -1 closes #6650 --- companion/src/simulation/widgets/radioswitchwidget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/companion/src/simulation/widgets/radioswitchwidget.h b/companion/src/simulation/widgets/radioswitchwidget.h index 8943d8c6e..04fb742c1 100644 --- a/companion/src/simulation/widgets/radioswitchwidget.h +++ b/companion/src/simulation/widgets/radioswitchwidget.h @@ -42,7 +42,7 @@ class RadioSwitchWidget : public RadioWidget init(); } - explicit RadioSwitchWidget(Board::SwitchType type, const QString & labelText, int value = 0, QWidget * parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()) : + explicit RadioSwitchWidget(Board::SwitchType type, const QString & labelText, int value = -1, QWidget * parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()) : RadioWidget(labelText, value, parent, f), swType(type) { @@ -127,7 +127,7 @@ class RadioSwitchWidget : public RadioWidget void resetToggle() { - setValue(0); + setValue(-1); } private slots: