diff options
author | David Robillard <d@drobilla.net> | 2008-12-02 00:17:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-02 00:17:14 +0000 |
commit | 5c150e73611323d739cc4a29d7f6ba529f136f87 (patch) | |
tree | f2a67b1e4eb0393ecd63f44ce8cc533b70da9838 | |
parent | 684a8fd8fd54a391662e72b1113ddbda14e66612 (diff) | |
download | ingen-5c150e73611323d739cc4a29d7f6ba529f136f87.tar.gz ingen-5c150e73611323d739cc4a29d7f6ba529f136f87.tar.bz2 ingen-5c150e73611323d739cc4a29d7f6ba529f136f87.zip |
Fix potential segfault when right-clicking patch nodes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1839 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/NodeMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index 79067cb9..8e6f03ac 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -90,8 +90,8 @@ NodeMenu::init(SharedPtr<NodeModel> node) else _randomize_menuitem->hide(); - if (plugin->uri() == "http://drobilla.net/ns/ingen-internals#Controller" - || plugin->uri() == "http://drobilla.net/ns/ingen-internals#Trigger") + if (plugin && (plugin->uri() == "http://drobilla.net/ns/ingen-internals#Controller" + || plugin->uri() == "http://drobilla.net/ns/ingen-internals#Trigger")) _learn_menuitem->show(); else _learn_menuitem->hide(); |