diff --git a/src/adaptors/UBImportAdaptor.cpp b/src/adaptors/UBImportAdaptor.cpp index b09ba0ff..0770fa39 100644 --- a/src/adaptors/UBImportAdaptor.cpp +++ b/src/adaptors/UBImportAdaptor.cpp @@ -35,7 +35,7 @@ UBImportAdaptor::~UBImportAdaptor() UBDocumentProxy* UBImportAdaptor::importFile(const QFile& pFile, const QString& pGroup) { - QString documentName = QFileInfo(pFile.fileName()).baseName(); + QString documentName = QFileInfo(pFile.fileName()).completeBaseName(); UBDocumentProxy* newDocument = UBPersistenceManager::persistenceManager()->createDocument(pGroup, documentName);