forked from qt-creator/qt-creator
Qt4project: Fix crash on changing a .pro file in particular ways
Reported on irc by ckandler Change-Id: I96133c708e05a8c05d48d67fbcd05637f2a1e241 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -257,6 +257,11 @@ Qt4PriFileNode::Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNo
|
|||||||
setIcon(qt4NodeStaticData()->projectIcon);
|
setIcon(qt4NodeStaticData()->projectIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Qt4PriFileNode::~Qt4PriFileNode()
|
||||||
|
{
|
||||||
|
watchFolders(QSet<QString>());
|
||||||
|
}
|
||||||
|
|
||||||
void Qt4PriFileNode::scheduleUpdate()
|
void Qt4PriFileNode::scheduleUpdate()
|
||||||
{
|
{
|
||||||
QtSupport::ProFileCacheManager::instance()->discardFile(m_projectFilePath);
|
QtSupport::ProFileCacheManager::instance()->discardFile(m_projectFilePath);
|
||||||
|
@@ -129,6 +129,7 @@ class QT4PROJECTMANAGER_EXPORT Qt4PriFileNode : public ProjectExplorer::ProjectN
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNode, const QString &filePath);
|
Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNode, const QString &filePath);
|
||||||
|
~Qt4PriFileNode();
|
||||||
|
|
||||||
void update(ProFile *includeFileExact, QtSupport::ProFileReader *readerExact, ProFile *includeFileCumlative, QtSupport::ProFileReader *readerCumalative);
|
void update(ProFile *includeFileExact, QtSupport::ProFileReader *readerExact, ProFile *includeFileCumlative, QtSupport::ProFileReader *readerCumalative);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user