forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user