From 2eea6482de34169484efb2ea29e021e53571fc51 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 8 Nov 2016 17:53:38 +0200 Subject: [PATCH] From no one we should check count of VPiece. --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 8c6eae650..6945564a7 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -2140,7 +2140,7 @@ void MainWindow::ActionDetails(bool checked) if(not qApp->getOpeningPattern()) { - if (pattern->DataDetails()->count() == 0) + if (pattern->DataPieces()->count() == 0) { QMessageBox::information(this, tr("Detail mode"), tr("You can't use now the Detail mode. " "Please, create at least one workpiece."),