When multiple selection, you can see the "No piece selected" after the Transformation-block. It shouldn't be shown.
This commit is contained in:
parent
32be26beef
commit
eda0b6173e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user