diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-25 05:01:29 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-25 05:01:29 (GMT) |
commit | f8228a61d098007457726e356ebdb4dedd8268e6 (patch) | |
tree | 1655c9babd2fe8934ab8504d340407a6c80a359f | |
parent | 6a9b8a56c1123d4ef0e511a1ab69d1f31fc6306d (diff) |
fixed crash bug introduced in previous commit
-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; } |