restore cursor in case of failure

This commit is contained in:
Sébastien Loriot 2018-02-27 10:58:31 +01:00
parent 441170768d
commit 0cac04a04b
1 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,8 @@ private:
{
delete new_poly;
messages->warning(tr("The result of the requested operation is not manifold and has not been computed."));
// default cursor
QApplication::restoreOverrideCursor();
return;
}
str_op = "Union";
@ -211,6 +213,8 @@ private:
{
delete new_poly;
messages->warning(tr("The result of the requested operation is not manifold and has not been computed."));
// default cursor
QApplication::restoreOverrideCursor();
return;
}
str_op = "Intersection";
@ -224,6 +228,8 @@ private:
{
delete new_poly;
messages->warning(tr("The result of the requested operation is not manifold and has not been computed."));
// default cursor
QApplication::restoreOverrideCursor();
return;
}
str_op = "Difference";