summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib/qhelpcollectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant/lib/qhelpcollectionhandler.cpp')
-rw-r--r--tools/assistant/lib/qhelpcollectionhandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/assistant/lib/qhelpcollectionhandler.cpp b/tools/assistant/lib/qhelpcollectionhandler.cpp
index cb7e457..235f737 100644
--- a/tools/assistant/lib/qhelpcollectionhandler.cpp
+++ b/tools/assistant/lib/qhelpcollectionhandler.cpp
@@ -308,10 +308,8 @@ bool QHelpCollectionHandler::addCustomFilter(const QString &filterName,
m_query.prepare(QLatin1String("SELECT Id FROM FilterNameTable WHERE Name=?"));
m_query.bindValue(0, filterName);
m_query.exec();
- while (m_query.next()) {
+ if (m_query.next())
nameId = m_query.value(0).toInt();
- break;
- }
m_query.exec(QLatin1String("SELECT Id, Name FROM FilterAttributeTable"));
QStringList idsToInsert = attributes;