takeContents now also searches for SC in hidden items. Otherwise we sometimes get a crash during restoreState.

This commit is contained in:
mfreiholz 2016-03-01 07:41:13 +01:00
parent 865213c5b5
commit 9f952c38f0

View File

@ -1050,6 +1050,14 @@ bool ContainerWidget::takeContent(const SectionContent::RefPtr& sc, InternalCont
_floatings.at(i)->takeContent(data);
}
// Search in hidden items
if (!found && _hiddenSectionContents.contains(sc->uid()))
{
const HiddenSectionItem hsi = _hiddenSectionContents.take(sc->uid());
data = hsi.data;
found = true;
}
return found;
}