forked from qt-creator/qt-creator
CMakePM: Fix concurrent access crash
Change-Id: I9ea11619860d4066cb06dfd4a60def8208f21add Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -338,6 +338,9 @@ void CMakeToolManager::updateDocumentation()
|
||||
QString CMakeToolManager::toolTipForRstHelpFile(const FilePath &helpFile)
|
||||
{
|
||||
static QHash<FilePath, QString> map;
|
||||
static QMutex mutex;
|
||||
QMutexLocker locker(&mutex);
|
||||
|
||||
if (map.contains(helpFile))
|
||||
return map.value(helpFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user