|
|
@ -931,10 +931,11 @@ void UBPersistenceManager::reassignDocProxy(UBDocumentProxy *newDocument, UBDocu |
|
|
|
return mSceneCache.reassignDocProxy(newDocument, oldDocument); |
|
|
|
return mSceneCache.reassignDocProxy(newDocument, oldDocument); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBPersistenceManager::persistDocumentScene(UBDocumentProxy* pDocumentProxy, UBGraphicsScene* pScene, const int pSceneIndex) |
|
|
|
void UBPersistenceManager::persistDocumentScene(UBDocumentProxy* pDocumentProxy, UBGraphicsScene* pScene, const int pSceneIndex, bool isAnAutomaticBackup) |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkIfDocumentRepositoryExists(); |
|
|
|
checkIfDocumentRepositoryExists(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isAnAutomaticBackup) |
|
|
|
pScene->deselectAllItems(); |
|
|
|
pScene->deselectAllItems(); |
|
|
|
|
|
|
|
|
|
|
|
generatePathIfNeeded(pDocumentProxy); |
|
|
|
generatePathIfNeeded(pDocumentProxy); |
|
|
|