diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 2401d30a..3d1e4fa3 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -589,8 +589,8 @@ void UBBoardController::duplicateScene(int nIndex) if (UBApplication::documentController->selectedDocument() == selectedDocument()) { UBApplication::documentController->insertThumbPage(nIndex); + UBApplication::documentController->reloadThumbnails(); } - //emit documentThumbnailsUpdated(this); emit addThumbnailRequired(this, nIndex + 1); selectedDocument()->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); diff --git a/src/document/UBDocumentController.cpp b/src/document/UBDocumentController.cpp index de19b90f..a551fed2 100644 --- a/src/document/UBDocumentController.cpp +++ b/src/document/UBDocumentController.cpp @@ -2382,7 +2382,10 @@ void UBDocumentController::duplicateSelectedItem() if (selectedSceneIndexes.count() > 0) { duplicatePages(selectedSceneIndexes); - emit documentThumbnailsUpdated(this); + if (selectedDocument() == selectedDocumentProxy()) + { + reloadThumbnails(); + } selectedDocument()->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); UBMetadataDcSubsetAdaptor::persist(selectedDocument()); int selectedThumbnail = selectedSceneIndexes.last() + selectedSceneIndexes.size(); @@ -3132,11 +3135,6 @@ void UBDocumentController::documentSceneChanged(UBDocumentProxy* proxy, int pSce { Q_UNUSED(pSceneIndex); - if (proxy == selectedDocumentProxy()) - { - reloadThumbnails(); - } - QModelIndexList sel = mDocumentUI->documentTreeView->selectionModel()->selectedRows(0); QModelIndex selection;