From 24eb14824c9346ca227a7296cb3f620bcf148410 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Nov 2008 20:10:32 +0000 Subject: Hide subpatch module ports on destruction (fix ticket #254). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1730 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/Port.hpp') diff --git a/src/gui/Port.hpp b/src/gui/Port.hpp index ebf9a59e..e826c7dc 100644 --- a/src/gui/Port.hpp +++ b/src/gui/Port.hpp @@ -22,6 +22,7 @@ #include #include "flowcanvas/Port.hpp" #include "raul/SharedPtr.hpp" +#include "raul/WeakPtr.hpp" #include "raul/Atom.hpp" namespace Ingen { namespace Client { class PortModel; } } @@ -45,7 +46,7 @@ public: ~Port(); - SharedPtr model() const { return _port_model; } + SharedPtr model() const { return _port_model.lock(); } void create_menu(); @@ -59,8 +60,8 @@ private: void renamed(); - SharedPtr _port_model; - bool _flipped; + WeakPtr _port_model; + bool _flipped; }; -- cgit v1.2.1