diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-12 18:51:23 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-12 18:51:23 +0200 |
commit | 4917445e2e1ca6ce2c6254db4850eb1cbd2ac485 (patch) | |
tree | 5efb418c12964d567a47b366e5bb4c436e31cac2 /Games | |
parent | 7e934189279e024a90003cbcfd2fa3eee9a6d308 (diff) | |
download | serenity-4917445e2e1ca6ce2c6254db4850eb1cbd2ac485.zip |
Minesweeper: Make the SquareButtons non-checkable
We manage the checked state of these buttons manually in the code, and
we don't want the user to interfere with it, which would be possible if
we put them in checkable state.
Diffstat (limited to 'Games')
-rw-r--r-- | Games/Minesweeper/Field.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Games/Minesweeper/Field.cpp b/Games/Minesweeper/Field.cpp index 13c7ded0ce..8278867d19 100644 --- a/Games/Minesweeper/Field.cpp +++ b/Games/Minesweeper/Field.cpp @@ -230,7 +230,6 @@ void Field::reset() square.label->set_icon(square.has_mine ? m_mine_bitmap : nullptr); if (!square.button) { square.button = new SquareButton(this); - square.button->set_checkable(true); square.button->on_click = [this, &square](GButton&) { on_square_clicked(square); }; |