diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 29c97abcd..b3e6b9e72 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -464,18 +464,18 @@ void MainWindowsNoGUI::PrepareDetailsForLayout(const QHash *de } listDetails.clear(); - QHashIterator idetail(*details); - while (idetail.hasNext()) + QHash::const_iterator i = details->constBegin(); + while (i != details->constEnd()) { - idetail.next(); VLayoutDetail det = VLayoutDetail(); - const VDetail &d = idetail.value(); + const VDetail d = i.value(); det.SetCountourPoints(d.ContourPoints(pattern)); det.SetSeamAllowencePoints(d.SeamAllowancePoints(pattern), d.getSeamAllowance(), d.getClosed()); det.setName(d.getName()); det.setWidth(qApp->toPixel(d.getWidth())); listDetails.append(det); + ++i; } }