From 83c331a7146781f07166e50d6985fcf26d8a5389 Mon Sep 17 00:00:00 2001
From: mae <qt-info@nokia.com>
Date: Mon, 23 Mar 2009 18:44:07 +0100
Subject: [PATCH] track modification changes for restored editors (in the open
 editors model)

---
 src/plugins/coreplugin/editormanager/editorview.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp
index a201e5c9bae..1399269c6a6 100644
--- a/src/plugins/coreplugin/editormanager/editorview.cpp
+++ b/src/plugins/coreplugin/editormanager/editorview.cpp
@@ -132,8 +132,7 @@ void EditorModel::addEntry(const Entry &entry)
     if (previousIndex >= 0) {
         if (entry.editor && m_editors.at(previousIndex).editor == 0) {
             m_editors[previousIndex] = entry;
-            QModelIndex mindex = index(previousIndex, 0);
-            emit dataChanged(mindex, mindex);
+            connect(entry.editor, SIGNAL(changed()), this, SLOT(itemChanged()));
         }
         return;
     }
-- 
GitLab