QtHelp: Unregister documentation atomically


unregisterDocumentation() deleted the NamespaceTable row twice, the
first time before looking up the namespace's folder, and didn't use a
transaction. For a namespace without a FolderTable row, it deleted the
namespace and then returned false, leaving the index data of the
namespace orphaned in the collection file for good. The same happened
when any of the later statements failed.

Remove the first DELETE statement, wrap the removal in a transaction
and check the result of the commit.

Task-number: QTBUG-150686
Pick-to: 6.12 6.8
Change-Id: I4637d84583e6a5d7f13a569ef08494beb543cb34
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
commit9d26364cd122404e62a4d82cf322afc9538fb31f
parent5388e9157d69a7e5817a662ca7cbb69ea41d5f39
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeThu, 1 Oct 2026 17:26:57 +0000