summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2009-03-23 18:44:07 +0100
committermae <qt-info@nokia.com>2009-03-23 18:44:07 +0100
commit83c331a7146781f07166e50d6985fcf26d8a5389 (patch)
treebb017fb346bed783d4b48e68a7e26f14726b18f9 /src/plugins
parentf8f5263b386ecabeebf2f5b360bae17187ae0dc2 (diff)
downloadqt-creator-83c331a7146781f07166e50d6985fcf26d8a5389.tar.gz
track modification changes for restored editors (in the open editors model)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/coreplugin/editormanager/editorview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp
index a201e5c9ba..1399269c6a 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;
}