Commit 83c331a7 authored by mae's avatar mae
Browse files

track modification changes for restored editors (in the open editors model)

parent f8f5263b
...@@ -132,8 +132,7 @@ void EditorModel::addEntry(const Entry &entry) ...@@ -132,8 +132,7 @@ void EditorModel::addEntry(const Entry &entry)
if (previousIndex >= 0) { if (previousIndex >= 0) {
if (entry.editor && m_editors.at(previousIndex).editor == 0) { if (entry.editor && m_editors.at(previousIndex).editor == 0) {
m_editors[previousIndex] = entry; m_editors[previousIndex] = entry;
QModelIndex mindex = index(previousIndex, 0); connect(entry.editor, SIGNAL(changed()), this, SLOT(itemChanged()));
emit dataChanged(mindex, mindex);
} }
return; return;
} }
......
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