summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-26 15:34:47 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-26 15:34:47 (GMT)
commit4ff2d1af446c1f276c644b12e6ec4cc6db0b6d65 (patch)
tree10e9e52c2483efd6149f189c21366cdb0b11de77 /src/mainwin.cc
parentf0817a1c167c9d9f0ecf0ef8ec7bee03d61e63f2 (diff)
Some light refactoring attempts, didn't get very far..
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 3243847..a169ab1 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -582,7 +582,7 @@ void MainWindow::load()
AbstractNode *MainWindow::find_root_tag(AbstractNode *n)
{
BOOST_FOREACH (AbstractNode *v, n->children) {
- if (v->modinst->tag_root) return v;
+ if (v->modinst->isRoot()) return v;
if (AbstractNode *vroot = find_root_tag(v)) return vroot;
}
return NULL;
@@ -1504,7 +1504,7 @@ void MainWindow::actionFlushCaches()
#endif
dxf_dim_cache.clear();
dxf_cross_cache.clear();
- Module::libs_cache.clear();
+ Module::clear_library_cache();
}
void MainWindow::viewModeActionsUncheck()
contact: Jan Huwald // Impressum