diff options
-rw-r--r-- | src/mainwin.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 4b9a0e7..bb0f90d 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -1014,8 +1014,10 @@ static bool is_modified(const std::string &filename, const time_t &mtime) bool MainWindow::includesChanged() { - BOOST_FOREACH(const Module::IncludeContainer::value_type &item, this->root_module->includes) { - if (is_modified(item.first, item.second)) return true; + if (this->root_module) { + BOOST_FOREACH(const Module::IncludeContainer::value_type &item, this->root_module->includes) { + if (is_modified(item.first, item.second)) return true; + } } return false; } |