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.
(grafted from fbf1dfae06b21d88189d771f2b2e45eeb84a02ce)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-20 20:47:39 +03:00
parent fa8e63c49c
commit d2791a1a6b
2 changed files with 9 additions and 2 deletions

View File

@ -58,6 +58,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

@ -3852,9 +3852,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;
}
}
//---------------------------------------------------------------------------------------------------------------------