diff options
author | Liang Qi <liang.qi@qt.io> | 2019-01-04 12:11:11 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-01-04 13:03:26 +0100 |
commit | 7b23692538f55d499bf094a750311e1e4cd13ec6 (patch) | |
tree | 7e85cdabe0e069ee8fcbc3da3764327b4f8e2ba2 /src/assistant/help/qhelpcollectionhandler.cpp | |
parent | aa316d1d463777612db4b144d945bbaf67481494 (diff) | |
parent | 32897fd0b98966d22ecbd475a0e6a77ca8b1108d (diff) |
Merge remote-tracking branch 'origin/5.12' into dev
Conflicts:
src/qdoc/htmlgenerator.cpp
src/qtattributionsscanner/qdocgenerator.cpp
Done-With: Martin Smith <martin.smith@qt.io>
Change-Id: I56a23175579a1a699939179da2f35bbcd6c73367
Diffstat (limited to 'src/assistant/help/qhelpcollectionhandler.cpp')
-rw-r--r-- | src/assistant/help/qhelpcollectionhandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp index 0cb6264dd..789e490ed 100644 --- a/src/assistant/help/qhelpcollectionhandler.cpp +++ b/src/assistant/help/qhelpcollectionhandler.cpp @@ -210,8 +210,10 @@ bool QHelpCollectionHandler::openCollectionFile() const FileInfoList &docList = registeredDocumentations(); if (indexAndNamespaceFilterTablesMissing) { for (const QHelpCollectionHandler::FileInfo &info : docList) { - if (!registerIndexAndNamespaceFilterTables(info.namespaceName)) + if (!registerIndexAndNamespaceFilterTables(info.namespaceName)) { + emit error(tr("Cannot register index tables in file %1.").arg(collectionFile())); return false; + } } return true; } @@ -239,8 +241,10 @@ bool QHelpCollectionHandler::openCollectionFile() // In this case we remove all records from tables. Transaction transaction(m_connectionName); for (const TimeStamp &timeStamp : toRemove) { - if (!unregisterIndexTable(timeStamp.namespaceId, timeStamp.folderId)) + if (!unregisterIndexTable(timeStamp.namespaceId, timeStamp.folderId)) { + emit error(tr("Cannot unregister index tables in file %1.").arg(collectionFile())); return false; + } } transaction.commit(); |