When add a piece do not make it selected.

This commit is contained in:
Roman Telezhynskyi 2022-02-12 16:44:44 +02:00
parent 341dfadc93
commit 7c55596052

View file

@ -161,12 +161,12 @@ void VPCarrouselPieceList::startDrag(Qt::DropActions supportedActions)
if(drag->exec() == Qt::MoveAction) if(drag->exec() == Qt::MoveAction)
{ {
m_carrousel->Refresh(); m_carrousel->Refresh();
piece->SetSelected(true); piece->SetSelected(false);
VPLayoutPtr layout = piece->Layout(); VPLayoutPtr pieceLayout = piece->Layout();
if (not layout.isNull()) if (not pieceLayout.isNull())
{ {
emit layout->PieceSelectionChanged(piece); emit pieceLayout->PieceSelectionChanged(piece);
} }
} }
} }