diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-04-09 17:41:12 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-04-26 13:39:17 +0200 |
commit | 585db283397e43aabe11281d2fe1fa1a01fd05c0 (patch) | |
tree | 7d7bea771b7e8af539a8f411f0c72bb2dc7adfb1 | |
parent | 5c8a962c3b0973c86afda85bff1e3fdff31f2fc6 (diff) |
QHelpEngineCore: Reinitialize on changing the read only mode
Fixes: QTBUG-119515
Change-Id: I3d80138ce9282594f7d68c440c4666a9e4896c37
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
-rw-r--r-- | src/assistant/help/qhelpenginecore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpenginecore.cpp b/src/assistant/help/qhelpenginecore.cpp index 5726e3250..de44e5701 100644 --- a/src/assistant/help/qhelpenginecore.cpp +++ b/src/assistant/help/qhelpenginecore.cpp @@ -227,7 +227,11 @@ bool QHelpEngineCore::isReadOnly() const void QHelpEngineCore::setReadOnly(bool enable) { + if (d->readOnly == enable) + return; + d->readOnly = enable; + d->init(collectionFile()); } /*! |