diff options
author | David Robillard <d@drobilla.net> | 2013-01-08 19:02:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-08 19:02:11 +0000 |
commit | 19b6f2d1c1e8ddcc52b45b4a2c17d4f0317ceabc (patch) | |
tree | 72c29bc1ec7f8937c11de859d99f0b50e4cb3386 /src/gui/Port.cpp | |
parent | e6996e3794a0cebe3d196759c98eaa6103bd559c (diff) | |
download | ingen-19b6f2d1c1e8ddcc52b45b4a2c17d4f0317ceabc.tar.gz ingen-19b6f2d1c1e8ddcc52b45b4a2c17d4f0317ceabc.tar.bz2 ingen-19b6f2d1c1e8ddcc52b45b4a2c17d4f0317ceabc.zip |
Re-enable node documentation.
Separate setting documentation from showing documentation pane, and make the latter a user option.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4909 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index f6e1e46b..6a6cdfe2 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -428,14 +428,10 @@ Port::set_selected(gboolean b) if (pm && b) { SharedPtr<const BlockModel> block = PtrCast<BlockModel>(pm->parent()); GraphWindow* win = _app.window_factory()->parent_graph_window(block); - if (win && block->plugin_model()) { + if (win && win->documentation_is_visible() && block->plugin_model()) { const std::string& doc = block->plugin_model()->port_documentation( pm->index()); - if (!doc.empty()) { - win->show_documentation(doc, false); - } else { - win->hide_documentation(); - } + win->set_documentation(doc, false); } } } |