From 8f647ca9ca3d58ff9b0f36afe59bd860d05f9585 Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Mon, 18 Oct 2010 13:33:51 +0200
Subject: [PATCH] Wizards editing pro files would sometimes ask for reloading
 open editors

Task-number: QTCREATORBUG-2205
Reviewed-by: dt
---
 src/plugins/qt4projectmanager/qt4nodes.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index 81a2c348fca..a48fd03e2a7 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -1066,7 +1066,9 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
     }
 
     // save file
+    Core::ICore::instance()->fileManager()->expectFileChange(m_projectFilePath);
     save(lines);
+    Core::ICore::instance()->fileManager()->unexpectFileChange(m_projectFilePath);
 
     // This is a hack.
     // We are saving twice in a very short timeframe, once the editor and once the ProFile.
-- 
GitLab