We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d5a6b commit ebf677aCopy full SHA for ebf677a
libgui/src/documentation.cc
@@ -704,6 +704,12 @@ documentation::load_ref (const QString& ref_name)
704
#if defined (HAVE_QHELPENGINE_DOCUMENTSFORIDENTIFIER)
705
QList<QHelpLink> found_links
706
= m_help_engine->documentsForIdentifier (ref_name);
707
+ // Depending on how the qch-file was generated, searching for an Id
708
+ // might not be successful and the full text search would be started
709
+ // next. In order to still find an exisiting index entry, try searching
710
+ // for the keyword as well.
711
+ if (found_links.count () == 0)
712
+ found_links = m_help_engine->documentsForKeyword (ref_name);
713
#else
714
QMap<QString, QUrl> found_links
715
= m_help_engine->linksForIdentifier (ref_name);
0 commit comments