From 0cac04a04b0f54396ef0de00a274103b441504d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 27 Feb 2018 10:58:31 +0100 Subject: [PATCH] restore cursor in case of failure --- .../demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp index ec36cfc8c51..68c90b62a24 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp @@ -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";