From f407e969f43669afda3646e2e71c87534baebb87 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 1 Apr 2019 19:21:39 +0300 Subject: [PATCH] Don't hide EmptyPaperError by timeout to show real reason. --HG-- branch : feature --- src/app/valentina/mainwindowsnogui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 859488d49..e26087e0e 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -241,7 +241,10 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator) { if (timer.hasExpired(lGenerator.GetNestingTime() * 60000)) { - nestingState = LayoutErrors::Timeout; + if (nestingState != LayoutErrors::EmptyPaperError) + { + nestingState = LayoutErrors::Timeout; + } progress->Finished(); return true; }