QtHelp: Allow canceling indexing while the index database is locked


The indexer retried to initialize the index database every second for
as long as it stayed locked, without checking the cancel flag. As the
destructor of QHelpSearchIndexWriter waits for the thread to finish,
a persistently locked database hung the application on shutdown.

Check the cancel flag before each retry.

Task-number: QTBUG-150684
Pick-to: 6.12 6.8
Change-Id: I318379e6bd2dd658cbde07663035b3207c5ab341
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
commit6ae305cb2444bbaad4f85e6436532960e389a93a
parent37f6a5eacd3c8e3ab8c5ac4430519656048c3080
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeThu, 1 Oct 2026 15:53:01 +0000