@ -780,6 +780,7 @@ void UBBoardController::deleteScene(int nIndex)
scIndexes << nIndex;
deletePages(scIndexes);
selectedDocument()->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime()));
UBMetadataDcSubsetAdaptor::persist(selectedDocument());
if (nIndex >= pageCount())
nIndex = pageCount()-1;
@ -867,12 +867,12 @@ void UBPersistenceManager::insertDocumentSceneAt(UBDocumentProxy* proxy, UBGraph
mSceneCache.insert(proxy, index, scene);
proxy->incPageCount();
if (persist) {
persistDocumentScene(proxy, scene, index);
}
emit documentSceneCreated(proxy, index);