Fixes #2390
This commit is contained in:
@@ -589,7 +589,7 @@ SetupPanel::SetupPanel(QWidget *parent, ModelData & model, GeneralSettings & gen
|
|||||||
ui->potWarningLayout->addWidget(cb, 0, i+1);
|
ui->potWarningLayout->addWidget(cb, 0, i+1);
|
||||||
connect(cb, SIGNAL(toggled(bool)), this, SLOT(potWarningToggled(bool)));
|
connect(cb, SIGNAL(toggled(bool)), this, SLOT(potWarningToggled(bool)));
|
||||||
potWarningCheckboxes << cb;
|
potWarningCheckboxes << cb;
|
||||||
if (RawSource(SOURCE_TYPE_STICK,i).isPot()) {
|
if (RawSource(SOURCE_TYPE_STICK, NUM_STICKS+i).isPot()) {
|
||||||
if (!generalSettings.isPotAvailable(i)) {
|
if (!generalSettings.isPotAvailable(i)) {
|
||||||
cb->hide();
|
cb->hide();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user