From 4917445e2e1ca6ce2c6254db4850eb1cbd2ac485 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 12 Aug 2019 18:51:23 +0200 Subject: [PATCH] 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. --- Games/Minesweeper/Field.cpp | 1 - 1 file changed, 1 deletion(-) 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); };