diff options
author | David Robillard <d@drobilla.net> | 2016-10-02 21:11:22 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-02 23:01:13 -0400 |
commit | f72958737b63f5179552ce30cdb98e2785519023 (patch) | |
tree | 42c8bc448a50bc31de6fe7bfc8402097379c7913 | |
parent | 97d25d127249ebe8558c019a968fe43303bea3f6 (diff) | |
download | ingen-f72958737b63f5179552ce30cdb98e2785519023.tar.gz ingen-f72958737b63f5179552ce30cdb98e2785519023.tar.bz2 ingen-f72958737b63f5179552ce30cdb98e2785519023.zip |
Fix status bar text for subgraph ports
-rw-r--r-- | src/gui/Port.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index f9a04016..9a20a8b8 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -383,11 +383,12 @@ GraphBox* Port::get_graph_box() const { SPtr<const GraphModel> graph = dynamic_ptr_cast<const GraphModel>(model()->parent()); - if (!graph) { + GraphBox* box = _app.window_factory()->graph_box(graph); + if (!box) { graph = dynamic_ptr_cast<const GraphModel>(model()->parent()->parent()); + box = _app.window_factory()->graph_box(graph); } - - return _app.window_factory()->graph_box(graph); + return box; } void |