From f72958737b63f5179552ce30cdb98e2785519023 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Oct 2016 21:11:22 -0400 Subject: Fix status bar text for subgraph ports --- src/gui/Port.cpp | 7 ++++--- 1 file 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 graph = dynamic_ptr_cast(model()->parent()); - if (!graph) { + GraphBox* box = _app.window_factory()->graph_box(graph); + if (!box) { graph = dynamic_ptr_cast(model()->parent()->parent()); + box = _app.window_factory()->graph_box(graph); } - - return _app.window_factory()->graph_box(graph); + return box; } void -- cgit v1.2.1