diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-26 19:08:23 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-26 19:08:23 (GMT) |
commit | ce11fb2ea2d9b6865fbdb0fc6b31f7cf8a98e11b (patch) | |
tree | 7c3bffce75fdf5f7c4c8558977b7405e5e000e9b /src/mainwin.cc | |
parent | da970b5cc067baeb0edee59ba791e14a7fbfb4c6 (diff) |
Fixed remaining issue. We now correctly detect removal of files as changes. Removed temporary debug output. Fixes #364
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index a7b7a30..8151e29 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -615,9 +615,7 @@ void MainWindow::refreshDocument() */ bool MainWindow::compile(bool reload, bool procevents) { - PRINT("compile"); if (!compileTopLevelDocument(reload)) return false; - PRINT("init render"); // Invalidate renderers before we kill the CSG tree this->qglview->setRenderer(NULL); @@ -1022,16 +1020,11 @@ bool MainWindow::fileChangedOnDisk() bool MainWindow::includesChanged() { - PRINT("includes changed?"); if (this->root_module) { BOOST_FOREACH(const FileModule::IncludeContainer::value_type &item, this->root_module->includes) { - //std::cout<< item.first << "second" << item.second << "\n"; - //std::cout<< (is_modified(item.first, item.second)) <<"\n"; - if (this->root_module->include_modified(item.second)) - return true; + if (this->root_module->include_modified(item.second)) return true; } } - PRINT("includes not changed"); return false; } @@ -1044,7 +1037,6 @@ bool MainWindow::includesChanged() */ bool MainWindow::compileTopLevelDocument(bool reload) { - PRINT("compile top level"); bool shouldcompiletoplevel = !reload; if (includesChanged()) shouldcompiletoplevel = true; @@ -1055,7 +1047,6 @@ bool MainWindow::compileTopLevelDocument(bool reload) } if (shouldcompiletoplevel) { - PRINT("shouldcompile top level"); console->clear(); updateTemporalVariables(); |