- changed nonapplicable decorator error message with something a lot more meaningful

This commit is contained in:
Guido Ranzuglia granzuglia 2016-07-27 10:31:03 +00:00
parent d173e617a0
commit e51170d0be

View File

@ -1328,7 +1328,8 @@ void GLArea::updateDecorator(QString name, bool toggle, bool stateToSet)
else{
if(toggle || stateToSet==true){
QString errorMessage;
if (iDecorateTemp->isDecorationApplicable(action,currentMeshModel,errorMessage)) {
if (iDecorateTemp->isDecorationApplicable(action,currentMeshModel,errorMessage))
{
iDecorateTemp->setLog(&md()->Log);
bool ret = iDecorateTemp->startDecorate(action,currentMeshModel, glas.currentGlobalParamSet, this);
if(ret) {
@ -1337,7 +1338,7 @@ void GLArea::updateDecorator(QString name, bool toggle, bool stateToSet)
}
else this->Logf(GLLogStream::SYSTEM,"Failed Decorate mode %s",qPrintable(action->text()));
} else
this->Logf(GLLogStream::SYSTEM,"Trying to enable an already enabled Decorate mode %s",qPrintable(action->text()));
this->Logf(GLLogStream::SYSTEM,"Error in Decorate mode %s: %s",qPrintable(action->text()),qPrintable(errorMessage));
}
}