bool ItemTreeArchiver::restore(ArchivePtr archive, ItemPtr parentItem)
{
    bool result = false;

    archive->setCurrentParentItem(0);

    try {
        result = restoreItemIter(archive.get(), parentItem);
    } catch (const YamlNode::Exception& ex) {
        messageView->put(ex.message());
    }

    archive->setCurrentParentItem(0);

    return result;
}
Exemple #2
0
void ViewArea::restoreLayout(ArchivePtr archive)
{
    impl->restoreLayout(archive.get());
}