From f2df879cbd3e09f25d3c23f05fb76549a5a45296 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 21 Nov 2019 10:31:57 +0100 Subject: Fix empty content and index widgets when qhc is readonly Fixes: QTBUG-78146 Change-Id: I1e52e17d9024f566e761b804d56bf029f1d7b83f Reviewed-by: Kai Koehne --- src/assistant/help/qhelpcontentwidget.cpp | 1 + src/assistant/help/qhelpindexwidget.cpp | 1 + 2 files changed, 2 insertions(+) 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; -- cgit v1.2.3