diff --git a/src/Gui/ViewProviderPythonFeature.cpp b/src/Gui/ViewProviderPythonFeature.cpp index 18540b4655..9275570685 100644 --- a/src/Gui/ViewProviderPythonFeature.cpp +++ b/src/Gui/ViewProviderPythonFeature.cpp @@ -1019,9 +1019,6 @@ bool ViewProviderPythonFeatureImp::isShow() const Py::Boolean ok(method.apply(args)); return static_cast(ok) ? true : false; } - else { - return false; - } } } catch (Py::Exception&) { diff --git a/src/Gui/ViewProviderPythonFeature.h b/src/Gui/ViewProviderPythonFeature.h index 0428b62242..b707b9fa88 100644 --- a/src/Gui/ViewProviderPythonFeature.h +++ b/src/Gui/ViewProviderPythonFeature.h @@ -73,7 +73,7 @@ public: /** @name Display methods */ //@{ /// Returns true if the icon must always appear enabled in the tree view - virtual bool isShow() const; + bool isShow() const; /// get the default display mode const char* getDefaultDisplayMode() const; /// returns a list of all possible modes