CommandSketcherBSpline Increaseknot extended to comply with the convention: if not rethrowing, must report

This commit is contained in:
Abdullah Tahiri
2017-08-17 22:54:19 +02:00
committed by wmayer
parent ffac6242fd
commit 46a8598e71

View File

@@ -577,6 +577,7 @@ void CmdSketcherIncreaseKnotMultiplicity::activated(int iMsg)
}
catch (const Base::CADKernelError& e) {
e.ReportException();
if(e.getTranslatable()) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("CAD Kernel Error"),
QObject::tr(e.getMessage().c_str()));
@@ -584,7 +585,7 @@ void CmdSketcherIncreaseKnotMultiplicity::activated(int iMsg)
getSelection().clearSelection();
}
catch (const Base::Exception& e) {
e.ReportException();
if(e.getTranslatable()) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Input Error"),
QObject::tr(e.getMessage().c_str()));