summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphTreeWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/GraphTreeWindow.cpp')
-rw-r--r--src/gui/GraphTreeWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/GraphTreeWindow.cpp b/src/gui/GraphTreeWindow.cpp
index 7a787cb3..41ee92de 100644
--- a/src/gui/GraphTreeWindow.cpp
+++ b/src/gui/GraphTreeWindow.cpp
@@ -161,7 +161,9 @@ GraphTreeWindow::find_graph(Gtk::TreeModel::Children root,
std::shared_ptr<GraphModel> pm = (*c)[_graph_tree_columns.graph_model_col];
if (graph == pm) {
return c;
- } else if (!(*c)->children().empty()) {
+ }
+
+ if (!(*c)->children().empty()) {
auto ret = find_graph(c->children(), graph);
if (ret != c->children().end()) {
return ret;