Fixed Valentina.exe bug in command line mode.

Not all errors were correctly catched in comsole mode. This caused method
LoadPattern return successes where in reality was an error. Also this bug made
regression tests less useful.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-08-20 20:08:34 +03:00
parent 818ff6752d
commit 12b4f8d77f
2 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,7 @@
- [#544] Error: Color Lines are black until touched.
- [#543] Detail loses details.
- [#548] Bug Detail tool. Case when seam allowance is wrong.
- Called the main app in console mode doesn't show opening file error in some cases.
# Version 0.4.4 April 12, 2016
- Updated measurement templates with all measurements. Added new template Aldrich/Women measurements.

View File

@ -3587,9 +3587,15 @@ bool MainWindow::LoadPattern(const QString &fileName, const QString& customMeasu
ZoomFirstShow();
ActionDraw(true);
qApp->setOpeningPattern();// End opening file
return true;
}
else
{
qApp->setOpeningPattern();// End opening file
return false;
}
qApp->setOpeningPattern();// End opening file
return true;
}
//---------------------------------------------------------------------------------------------------------------------