Commit 7d570b3a authored by Clément Fauconnier's avatar Clément Fauconnier

fixed a regression where an renamed document at import would display the previous name

parent 84fad666
...@@ -229,7 +229,6 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB ...@@ -229,7 +229,6 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB
, Qt::Widget); , Qt::Widget);
if (replaceDialog->exec() == QDialog::Accepted) if (replaceDialog->exec() == QDialog::Accepted)
{ {
mDocumentTreeStructureModel->addDocument(pProxy, parentIndex);
result = QDialog::Accepted; result = QDialog::Accepted;
QString resultName = replaceDialog->lineEditText(); QString resultName = replaceDialog->lineEditText();
int i = docList.indexOf(resultName); int i = docList.indexOf(resultName);
...@@ -250,6 +249,7 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB ...@@ -250,6 +249,7 @@ QDialog::DialogCode UBPersistenceManager::processInteractiveReplacementDialog(UB
} }
} }
pProxy->setMetaData(UBSettings::documentName, resultName); pProxy->setMetaData(UBSettings::documentName, resultName);
mDocumentTreeStructureModel->addDocument(pProxy, parentIndex);
} }
replaceDialog->setParent(0); replaceDialog->setParent(0);
delete replaceDialog; delete replaceDialog;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment