When multiple selection, you can see the "No piece selected" after the Transformation-block. It shouldn't be shown.

This commit is contained in:
Roman Telezhynskyi 2021-09-27 11:49:33 +03:00
parent 32be26beef
commit eda0b6173e

View File

@ -1258,6 +1258,8 @@ void VPMainWindow::SetPropertyTabCurrentPieceData()
{ {
QList<VPPiecePtr> selectedPieces = SelectedPieces(); QList<VPPiecePtr> selectedPieces = SelectedPieces();
ui->labelCurrentPieceNoPieceSelected->setVisible(false);
if(selectedPieces.isEmpty()) if(selectedPieces.isEmpty())
{ {
// show the content "no piece selected" // show the content "no piece selected"
@ -1270,8 +1272,6 @@ void VPMainWindow::SetPropertyTabCurrentPieceData()
} }
else if(selectedPieces.count() == 1) else if(selectedPieces.count() == 1)
{ {
ui->labelCurrentPieceNoPieceSelected->setVisible(false);
ui->groupBoxCurrentPieceInfo->setVisible(true); ui->groupBoxCurrentPieceInfo->setVisible(true);
ui->groupBoxPieceTransformation->setVisible(true); ui->groupBoxPieceTransformation->setVisible(true);
ui-> groupBoxCurrentPieceSeamline->setVisible(true); ui-> groupBoxCurrentPieceSeamline->setVisible(true);
@ -1300,9 +1300,6 @@ void VPMainWindow::SetPropertyTabCurrentPieceData()
else else
{ {
// show the content "multiple pieces selected" // show the content "multiple pieces selected"
ui->labelCurrentPieceNoPieceSelected->setVisible(true);
ui->groupBoxCurrentPieceInfo->setVisible(false); ui->groupBoxCurrentPieceInfo->setVisible(false);
ui->groupBoxPieceTransformation->setVisible(true); ui->groupBoxPieceTransformation->setVisible(true);
ui->groupBoxCurrentPieceSeamline->setVisible(false); ui->groupBoxCurrentPieceSeamline->setVisible(false);