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)
{
m_carrousel->Refresh();
piece->SetSelected(true);
piece->SetSelected(false);
VPLayoutPtr layout = piece->Layout();
if (not layout.isNull())
VPLayoutPtr pieceLayout = piece->Layout();
if (not pieceLayout.isNull())
{
emit layout->PieceSelectionChanged(piece);
emit pieceLayout->PieceSelectionChanged(piece);
}
}
}