1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: ensure FileAttributeSetTable is filled ordered so we get the same qch file each time
Origin: upstream, https://code.qt.io/cgit/qt/qttools.git/commit/?id=45dc9fa0221a3aad
Last-Update: 2024-01-13
--- a/src/assistant/qhelpgenerator/helpgenerator.cpp
+++ b/src/assistant/qhelpgenerator/helpgenerator.cpp
@@ -445,7 +445,9 @@ bool HelpGeneratorPrivate::insertFiles(c
if (filterSetId < 0)
return false;
++filterSetId;
- for (int attId : qAsConst(filterAtts)) {
+ QList<int> attValues = filterAtts.values();
+ std::sort(attValues.begin(), attValues.end());
+ for (int attId : qAsConst(attValues)) {
m_query->prepare(QLatin1String("INSERT INTO FileAttributeSetTable "
"VALUES(?, ?)"));
m_query->bindValue(0, filterSetId);
|