summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwin.cc b/mainwin.cc
index dff93cb..742788f 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -415,7 +415,7 @@ AbstractNode *MainWindow::find_root_tag(AbstractNode *n)
{
foreach(AbstractNode *v, n->children) {
if (v->modinst->tag_root) return v;
- return find_root_tag(v);
+ if (AbstractNode *vroot = find_root_tag(v)) return vroot;
}
return NULL;
}
contact: Jan Huwald // Impressum