diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 79bbd3ce..306a2028 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1428,12 +1428,15 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QUrl QStringList fileNames; fileNames << pdfFile.fileName(); result = UBDocumentManager::documentManager()->addFilesToDocument(selectedDocument(), fileNames); - emit documentThumbnailsUpdated(this); pdfFile.close(); } } - if (result){ + if (result) + { + if (UBApplication::documentController->selectedDocument() == selectedDocument()) + UBApplication::documentController->reloadThumbnails(); + selectedDocument()->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); } } diff --git a/src/document/UBDocumentController.cpp b/src/document/UBDocumentController.cpp index 693fbd85..94008f34 100644 --- a/src/document/UBDocumentController.cpp +++ b/src/document/UBDocumentController.cpp @@ -3049,6 +3049,7 @@ bool UBDocumentController::addFileToDocument(UBDocumentProxy* document) { document->setMetaData(UBSettings::documentUpdatedAt, UBStringUtils::toUtcIsoDateTime(QDateTime::currentDateTime())); UBMetadataDcSubsetAdaptor::persist(document); + reloadThumbnails(); } else {