diff --git a/src/ui/display.hpp b/src/ui/display.hpp index 20c20729a49d9e5787c8a45efe1585eee6159e5d..b18fd3a3f9a88517409c916fb599fedd1ed8339a 100644 --- a/src/ui/display.hpp +++ b/src/ui/display.hpp @@ -15,7 +15,7 @@ namespace rmrf::ui { * It implements some basic information handling and a registry for * views. */ -class display : private std::enable_shared_from_this<display> { +class display : public std::enable_shared_from_this<display> { public: typedef display self_type; typedef std::shared_ptr<self_type> ptr_type; diff --git a/src/ui/view.hpp b/src/ui/view.hpp index 16d197e40f802808ff85074aafd1997b1e884a19..ebb0e13b61ff6e4da3394733436cb440042b83de 100644 --- a/src/ui/view.hpp +++ b/src/ui/view.hpp @@ -14,7 +14,7 @@ namespace rmrf::ui { /** * This abstract class implements a view page. */ -class view : public ui_context, private std::enable_shared_from_this<view> { +class view : public ui_context, public std::enable_shared_from_this<view> { private: std::shared_ptr<view> parent_view; std::list<std::shared_ptr<view>> child_views;