mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 18:14:38 +00:00
patched save() error
This commit is contained in:
parent
e412f858ab
commit
7defdfc2a1
@ -535,15 +535,15 @@ DecoratorParamsTreeWidget::~DecoratorParamsTreeWidget()
|
||||
void DecoratorParamsTreeWidget::save()
|
||||
{
|
||||
apply();
|
||||
QDomDocument doc("MeshLabSettings");
|
||||
RichParameterXMLVisitor v(doc);
|
||||
for(int ii = 0;ii < tmpSet.paramList.size();++ii)
|
||||
{
|
||||
QDomDocument doc("MeshLabSettings");
|
||||
RichParameterXMLVisitor v(doc);
|
||||
RichParameter* p = tmpSet.paramList[ii];
|
||||
p->accept(v);
|
||||
doc.appendChild(v.parElem);
|
||||
QString docstring = doc.toString();
|
||||
//qDebug("Writing into Settings param with name %s and content ****%s****",qPrintable(tmppar->name),qPrintable(docstring));
|
||||
qDebug("Writing into Settings param with name %s and content ****%s****",qPrintable(p->name),qPrintable(docstring));
|
||||
QSettings setting;
|
||||
setting.setValue(p->name,QVariant(docstring));
|
||||
p->pd->defVal->set(*p->val);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user