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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/GraphTreeWindow.cpp b/src/gui/GraphTreeWindow.cpp
index 5046eac9..68f6e392 100644
--- a/src/gui/GraphTreeWindow.cpp
+++ b/src/gui/GraphTreeWindow.cpp
@@ -139,7 +139,7 @@ GraphTreeWindow::find_graph(Gtk::TreeModel::Children root,
SPtr<GraphModel> pm = (*c)[_graph_tree_columns.graph_model_col];
if (graph == pm) {
return c;
- } else if ((*c)->children().size() > 0) {
+ } else if (!(*c)->children().empty()) {
Gtk::TreeModel::iterator ret = find_graph(c->children(), graph);
if (ret != c->children().end()) {
return ret;