Permalink
Browse files

Removed message, minor restructuring

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Mar 23, 2014
1 parent 268da0c commit ea436bd659e022d6375dd37f651d4bb18a1c01db
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/config.l
View
@@ -1591,21 +1591,22 @@ void Config::check()
checkFileName("GENERATE_TAGFILE");
// sanity check if all depends relations are valid
// disable any boolean options that depend on disabled options
QListIterator<ConfigOption> it = iterator();
ConfigOption *option;
for (it.toFirst();(option=it.current());++it)
{
QCString depName = option->dependsOn();
QCString depName = option->dependsOn(); // option has a dependency
if (!depName.isEmpty())
{
ConfigOption * dep = Config::instance()->get(depName);
if (dep->kind()==ConfigOption::O_Bool
&& Config_getBool(depName)==FALSE)
if (dep->kind()==ConfigOption::O_Bool &&
Config_getBool(depName)==FALSE) // dependent option is disabled
{
msg("disabling %s since its dependency(%s) is also disabled\n",option->name().data(),depName.data());
if (option->kind()==ConfigOption::O_Bool)
Config_getBool(option->name())=FALSE;
{
Config_getBool(option->name())=FALSE; // also disable this option
}
}
}
}

0 comments on commit ea436bd

Please sign in to comment.