From f8228a61d098007457726e356ebdb4dedd8268e6 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 25 Feb 2012 06:01:29 +0100 Subject: fixed crash bug introduced in previous commit 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; } -- cgit v0.10.1