mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 07:21:32 +08:00
takeContents now also searches for SC in hidden items. Otherwise we sometimes get a crash during restoreState.
This commit is contained in:
parent
865213c5b5
commit
9f952c38f0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user