VCS/Diff editors: Set readonly attributes correctly.

Make VCS-generated editors read-only, enable editing
when opening a patch.
Make VCS-Editor non-read-only by default, add setter
for "Forced read-only" that makes it a temporary,
read-only file.

Task-number: QTCREATORBUG-1528
Reviewed-by: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
Friedemann Kleint
2010-06-07 14:53:28 +02:00
parent d326c16747
commit c745155191
9 changed files with 61 additions and 9 deletions

View File

@@ -195,6 +195,7 @@ VCSBase::VCSBaseEditor
rc->setCodec(VCSBase::VCSBaseEditor::getCodec(source));
}
m_core->editorManager()->activateEditor(outputEditor);
rc->setForceReadOnly(true);
return rc;
}