summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-02 21:11:22 -0400
committerDavid Robillard <d@drobilla.net>2016-10-02 23:01:13 -0400
commitf72958737b63f5179552ce30cdb98e2785519023 (patch)
tree42c8bc448a50bc31de6fe7bfc8402097379c7913
parent97d25d127249ebe8558c019a968fe43303bea3f6 (diff)
downloadingen-f72958737b63f5179552ce30cdb98e2785519023.tar.gz
ingen-f72958737b63f5179552ce30cdb98e2785519023.tar.bz2
ingen-f72958737b63f5179552ce30cdb98e2785519023.zip
Fix status bar text for subgraph ports
-rw-r--r--src/gui/Port.cpp7
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