mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-23 14:26:12 +03:00
registry: Ignore symbols without type (fixes #980)
This commit is contained in:
parent
fe31f7fffb
commit
7060a34d06
@ -408,6 +408,13 @@ void Docset::countSymbols()
|
||||
|
||||
while (m_db->next()) {
|
||||
const QString symbolTypeStr = m_db->value(0).toString();
|
||||
|
||||
// A workaround for https://github.com/zealdocs/zeal/issues/980.
|
||||
if (symbolTypeStr.isEmpty()) {
|
||||
qWarning("Empty symbol type in the '%s' docset, skipping...", qPrintable(m_name));
|
||||
continue;
|
||||
}
|
||||
|
||||
const QString symbolType = parseSymbolType(symbolTypeStr);
|
||||
m_symbolStrings.insertMulti(symbolType, symbolTypeStr);
|
||||
m_symbolCounts[symbolType] += m_db->value(1).toInt();
|
||||
|
Loading…
Reference in New Issue
Block a user