From 4bb612e20e5bfa8afcb38b546eaa614c4a2646fd Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 24 Jan 2016 19:04:22 +0200 Subject: [PATCH] Show origins when add first pattern piece. --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 1498f2826..e79809838 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -217,6 +217,13 @@ void MainWindow::AddPP(const QString &PPName) qCDebug(vMainWindow, "Error creating pattern piece with the name %s.", qUtf8Printable(PPName)); return; } + + if (comboBoxDraws->count() == 0) + { + sceneDraw->InitOrigins(); + sceneDetails->InitOrigins(); + } + comboBoxDraws->blockSignals(true); comboBoxDraws->addItem(PPName);