forked from qt-creator/qt-creator
Qmake: Don't access never set QMakePriFile::m_buildSystem
Change-Id: I97e8f0c2b2e53a798bf2762324b4affab99fc938 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -411,8 +411,11 @@ void QmakePriFile::watchFolders(const QSet<FilePath> &folders)
|
|||||||
QSet<QString> toWatch = folderStrings;
|
QSet<QString> toWatch = folderStrings;
|
||||||
toWatch.subtract(m_watchedFolders);
|
toWatch.subtract(m_watchedFolders);
|
||||||
|
|
||||||
|
if (m_buildSystem) {
|
||||||
|
// Check needed on early exit of QmakeProFile::applyEvaluate?
|
||||||
m_buildSystem->unwatchFolders(Utils::toList(toUnwatch), this);
|
m_buildSystem->unwatchFolders(Utils::toList(toUnwatch), this);
|
||||||
m_buildSystem->watchFolders(Utils::toList(toWatch), this);
|
m_buildSystem->watchFolders(Utils::toList(toWatch), this);
|
||||||
|
}
|
||||||
|
|
||||||
m_watchedFolders = folderStrings;
|
m_watchedFolders = folderStrings;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user