Commit f7684f68 authored by Daniel Teske's avatar Daniel Teske
Browse files

Qt4project: Fix crash on changing a .pro file in particular ways



Reported on irc by ckandler

Change-Id: I96133c708e05a8c05d48d67fbcd05637f2a1e241
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 630ff22d
......@@ -257,6 +257,11 @@ Qt4PriFileNode::Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNo
setIcon(qt4NodeStaticData()->projectIcon);
}
Qt4PriFileNode::~Qt4PriFileNode()
{
watchFolders(QSet<QString>());
}
void Qt4PriFileNode::scheduleUpdate()
{
QtSupport::ProFileCacheManager::instance()->discardFile(m_projectFilePath);
......
......@@ -129,6 +129,7 @@ class QT4PROJECTMANAGER_EXPORT Qt4PriFileNode : public ProjectExplorer::ProjectN
public:
Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNode, const QString &filePath);
~Qt4PriFileNode();
void update(ProFile *includeFileExact, QtSupport::ProFileReader *readerExact, ProFile *includeFileCumlative, QtSupport::ProFileReader *readerCumalative);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment