diff options
-rw-r--r-- | src/assistant/help/qhelpcollectionhandler.cpp | 5 | ||||
-rw-r--r-- | src/assistant/help/qhelpcollectionhandler_p.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp index b8a61eae5..7d1733f10 100644 --- a/src/assistant/help/qhelpcollectionhandler.cpp +++ b/src/assistant/help/qhelpcollectionhandler.cpp @@ -72,8 +72,9 @@ bool QHelpCollectionHandler::isDBOpened() const { if (m_query) return true; - emit error(tr("The collection file \"%1\" is not set up yet."). - arg(m_collectionFile)); + auto *that = const_cast<QHelpCollectionHandler *>(this); + emit that->error(tr("The collection file \"%1\" is not set up yet."). + arg(m_collectionFile)); return false; } diff --git a/src/assistant/help/qhelpcollectionhandler_p.h b/src/assistant/help/qhelpcollectionhandler_p.h index c656b710e..c2e89b60f 100644 --- a/src/assistant/help/qhelpcollectionhandler_p.h +++ b/src/assistant/help/qhelpcollectionhandler_p.h @@ -184,7 +184,7 @@ public: const QString &relFileName, const QString &anchor); signals: - void error(const QString &msg) const; + void error(const QString &msg); private: // legacy stuff |