Skip to content

Commit

Permalink
fix practice board checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Landmaster committed Feb 5, 2021
1 parent b5cd100 commit 6fe8ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapdescriptorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void MapDescriptorWidget::loadRowWithMapDescriptor(int row, const MapDescriptor

auto isPracticeBoardCheck = new QCheckBox();
isPracticeBoardCheck->setChecked(descriptor.isPracticeBoard);
connect(isPracticeBoardCheck, &QCheckBox::clicked, this, [&](bool isChecked) {
connect(isPracticeBoardCheck, &QCheckBox::clicked, this, [=](bool isChecked) {
descriptorPtr->isPracticeBoard = isChecked;
});
setCellWidget(row, colIdx++, isPracticeBoardCheck);
Expand Down

0 comments on commit 6fe8ba6

Please sign in to comment.