diff options
author | David Robillard <d@drobilla.net> | 2008-11-16 20:10:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-16 20:10:32 +0000 |
commit | 24eb14824c9346ca227a7296cb3f620bcf148410 (patch) | |
tree | 99eb4ec5f684e5d8b7a88659d1f81128f27bcb42 /src/gui/Port.hpp | |
parent | 77fc40827ed8d713e9cbd8eded2db46aa47ce2d9 (diff) | |
download | ingen-24eb14824c9346ca227a7296cb3f620bcf148410.tar.gz ingen-24eb14824c9346ca227a7296cb3f620bcf148410.tar.bz2 ingen-24eb14824c9346ca227a7296cb3f620bcf148410.zip |
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
Diffstat (limited to 'src/gui/Port.hpp')
-rw-r--r-- | src/gui/Port.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <string> #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<PortModel> model() const { return _port_model; } + SharedPtr<PortModel> model() const { return _port_model.lock(); } void create_menu(); @@ -59,8 +60,8 @@ private: void renamed(); - SharedPtr<PortModel> _port_model; - bool _flipped; + WeakPtr<PortModel> _port_model; + bool _flipped; }; |