diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-11-21 10:31:57 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-01-06 17:02:21 +0100 |
commit | f2df879cbd3e09f25d3c23f05fb76549a5a45296 (patch) | |
tree | b8f8cfb95c67e4323f9ad605569f7eb20f57fc98 | |
parent | a18457ab5310b60290b4655f51aec859e7b3bc8a (diff) | |
download | qttools-f2df879cbd3e09f25d3c23f05fb76549a5a45296.tar.gz |
Fix empty content and index widgets when qhc is readonly
Fixes: QTBUG-78146
Change-Id: I1e52e17d9024f566e761b804d56bf029f1d7b83f
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r-- | src/assistant/help/qhelpcontentwidget.cpp | 1 | ||||
-rw-r--r-- | src/assistant/help/qhelpindexwidget.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpcontentwidget.cpp b/src/assistant/help/qhelpcontentwidget.cpp index f0702602e..47f96732e 100644 --- a/src/assistant/help/qhelpcontentwidget.cpp +++ b/src/assistant/help/qhelpcontentwidget.cpp @@ -276,6 +276,7 @@ void QHelpContentProvider::run() return; QHelpCollectionHandler collectionHandler(collectionFile); + collectionHandler.setReadOnly(true); if (!collectionHandler.openCollectionFile()) return; diff --git a/src/assistant/help/qhelpindexwidget.cpp b/src/assistant/help/qhelpindexwidget.cpp index fa70dd438..73de1489f 100644 --- a/src/assistant/help/qhelpindexwidget.cpp +++ b/src/assistant/help/qhelpindexwidget.cpp @@ -134,6 +134,7 @@ void QHelpIndexProvider::run() return; QHelpCollectionHandler collectionHandler(collectionFile); + collectionHandler.setReadOnly(true); if (!collectionHandler.openCollectionFile()) return; |