Commit a5de0270 authored by Alexander Semke's avatar Alexander Semke
Browse files

Properly replace the substring in documentationpanelwidget.cpp when determining the qhc file name.

parent c5d57f78
Pipeline #67688 passed with stage
in 20 minutes and 38 seconds
...@@ -306,12 +306,13 @@ void DocumentationPanelWidget::updateDocumentation() ...@@ -306,12 +306,13 @@ void DocumentationPanelWidget::updateDocumentation()
if (index < m_docPaths.size()) if (index < m_docPaths.size())
m_currentQchFileName = m_docPaths.at(index); m_currentQchFileName = m_docPaths.at(index);
const QString& qhcFileName = m_currentQchFileName.replace(QLatin1String("qch"), QLatin1String("qhc")); QString qhcFileName = m_currentQchFileName;
qhcFileName.replace(QLatin1String("qch"), QLatin1String("qhc"));
m_engine = new QHelpEngine(qhcFileName, this); m_engine = new QHelpEngine(qhcFileName, this);
/*if(!m_engine->setupData()) /*if(!m_engine->setupData())
qWarning() << "Couldn't setup QtHelp Engine: " << m_engine->error();*/ qWarning() << "Couldn't setup QtHelp Engine: " << m_engine->error();*/
if(m_backend != QLatin1String("octave")) // if(m_backend != QLatin1String("octave"))
m_engine->setProperty("_q_readonly", QVariant::fromValue<bool>(true)); m_engine->setProperty("_q_readonly", QVariant::fromValue<bool>(true));
//index widget //index widget
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment