When add a piece do not make it selected.
This commit is contained in:
parent
341dfadc93
commit
7c55596052
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user