insertthumbpage in board mode only if the same document is selected in both modes

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent 827f5a514c
commit 8216d2e9c6
  1. 1
      src/core/UBDocumentManager.cpp

@ -286,6 +286,7 @@ 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);
if (UBApplication::documentController->selectedDocument() == UBApplication::boardController->selectedDocument())
UBApplication::boardController->insertThumbPage(pageIndex); UBApplication::boardController->insertThumbPage(pageIndex);
} }

Loading…
Cancel
Save