Help: Fix that bookmarks were not restored

We have to make sure that the help engine is properly set up before
trying to read the bookmark data.

Change-Id: Id57cce5f538472eeac17b39a3640bf2ed77fa56a
Task-number: QTCREATORBUG-14106
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-04-02 10:25:46 +02:00
parent b9ea484305
commit 7b8d670bd8
2 changed files with 3 additions and 3 deletions

View File

@@ -140,10 +140,8 @@ BookmarkManager& LocalHelpManager::bookmarkManager()
{
if (!m_bookmarkManager) {
QMutexLocker _(&m_bkmarkMutex);
if (!m_bookmarkManager) {
if (!m_bookmarkManager)
m_bookmarkManager = new BookmarkManager;
m_bookmarkManager->setupBookmarkModels();
}
}
return *m_bookmarkManager;
}