QtHelp: Check the results when adding or removing custom filters


removeCustomFilter() ignored the results of both DELETE statements and
returned true even when they failed. addCustomFilter() ignored the
results of adding new filter attributes and of removing the old
attributes of the filter. Neither used a transaction, so a failure
could leave a filter partially removed or updated.

Check the results, run the changes in a transaction and check the
result of the commit.

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