From 4fe2e9688d05716ebd489c52efe423a6d1f82e03 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 27 Sep 2021 12:12:56 +0300 Subject: [PATCH] I select a piece, then I click on "remove unused" length. If I click directly afterwards on another piece, it makes automatically a multiple selection of the 2 pieces. Expectation: I makes a single selection of the last clicked piece. --- src/app/puzzle/layout/vpsheet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/puzzle/layout/vpsheet.cpp b/src/app/puzzle/layout/vpsheet.cpp index ba6b9ad22..695419e2a 100644 --- a/src/app/puzzle/layout/vpsheet.cpp +++ b/src/app/puzzle/layout/vpsheet.cpp @@ -612,6 +612,8 @@ void VPSheet::RemoveUnusedLength() { if (not piece.isNull()) { + piece->SetSelected(false); + emit layout->PieceSelectionChanged(piece); piecesBoundingRect = piecesBoundingRect.united(piece->MappedDetailBoundingRect()); } }