Bug #1306 ยป patch.diff
src/Wt/WTemplate.C | ||
---|---|---|
WWidget *w = i->second;
|
||
if (w->isRendered() && w->webWidget()->domCanBeSaved()) {
|
||
previouslyRendered.insert(w);
|
||
w->webWidget()->setRendered(false);
|
||
}
|
||
}
|
||
... | ... | |
if (previouslyRendered.find(w) != previouslyRendered.end()) {
|
||
if (saveWidgets)
|
||
element.saveChild(w->id());
|
||
w->webWidget()->setRendered(true);
|
||
previouslyRendered.erase(w);
|
||
}
|
||
}
|
||
element.setProperty(Wt::PropertyInnerHTML, html.str());
|
||
changed_ = false;
|
||
for (std::set<WWidget *>::const_iterator i = previouslyRendered.begin();
|
||
i != previouslyRendered.end(); ++i) {
|
||
WWidget *w = *i;
|
||
w->webWidget()->setRendered(false);
|
||
}
|
||
}
|
||
WInteractWidget::updateDom(element, all);
|