|
|
@ -286,7 +286,8 @@ int UBDocumentManager::addFilesToDocument(UBDocumentProxy* document, QStringList |
|
|
|
UBGraphicsScene* scene = UBPersistenceManager::persistenceManager()->createDocumentSceneAt(document, pageIndex); |
|
|
|
UBGraphicsScene* scene = UBPersistenceManager::persistenceManager()->createDocumentSceneAt(document, pageIndex); |
|
|
|
importAdaptor->placeImportedItemToScene(scene, page); |
|
|
|
importAdaptor->placeImportedItemToScene(scene, page); |
|
|
|
UBPersistenceManager::persistenceManager()->persistDocumentScene(document, scene, pageIndex); |
|
|
|
UBPersistenceManager::persistenceManager()->persistDocumentScene(document, scene, pageIndex); |
|
|
|
UBApplication::boardController->insertThumbPage(pageIndex); |
|
|
|
if (UBApplication::documentController->selectedDocument() == UBApplication::boardController->selectedDocument()) |
|
|
|
|
|
|
|
UBApplication::boardController->insertThumbPage(pageIndex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UBPersistenceManager::persistenceManager()->persistDocumentMetadata(document); |
|
|
|
UBPersistenceManager::persistenceManager()->persistDocumentMetadata(document); |
|
|
|