One more autolabor cleanup

develop
Valentin Ochs 2012-08-08 10:50:07 +02:00
parent 4039d2c0b7
commit 2abb9a898c
1 changed files with 3 additions and 7 deletions

@ -1348,16 +1348,12 @@ command_result autolabor (color_ostream &out, std::vector <std::string> & parame
{
enable_plugin(out);
}
else if(!enable)
else if(!enable && enable_autolabor)
{
if (enable_autolabor)
{
enable_autolabor = false;
setOptionEnabled(CF_ENABLED, false);
}
enable_autolabor = false;
setOptionEnabled(CF_ENABLED, false);
out << "The plugin is disabled." << endl;
return CR_OK;
}
return CR_OK;