From 7d570b3a2e3447df4e8d2fdd8e35661c754ee9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Mon, 16 Dec 2019 14:16:49 +0100 Subject: [PATCH] fixed a regression where an renamed document at import would display the previous name --- src/core/UBPersistenceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/UBPersistenceManager.cpp b/src/core/UBPersistenceManager.cpp index 67fbbd14..df371c6d 100644 --- a/src/core/UBPersistenceManager.cpp +++ b/src/core/UBPersistenceManager.cpp @@ -229,7 +229,6 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB , Qt::Widget); if (replaceDialog->exec() == QDialog::Accepted) { - mDocumentTreeStructureModel->addDocument(pProxy, parentIndex); result = QDialog::Accepted; QString resultName = replaceDialog->lineEditText(); int i = docList.indexOf(resultName); @@ -250,6 +249,7 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB } } pProxy->setMetaData(UBSettings::documentName, resultName); + mDocumentTreeStructureModel->addDocument(pProxy, parentIndex); } replaceDialog->setParent(0); delete replaceDialog;