diff options
author | Friedemann Kleint <[email protected]> | 2010-06-07 14:53:28 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2010-06-07 14:53:28 +0200 |
commit | c745155191fac756f13b92fbd0b33a458dd67b4d (patch) | |
tree | 727aa8db762b1ecad6d20bba22f1fcc935cf2123 /src/plugins/git/gitclient.cpp | |
parent | d326c1674784254e344a732541ffa32b39a92892 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r-- | src/plugins/git/gitclient.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 15e12d441f9..dd38c8c189a 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -195,6 +195,7 @@ VCSBase::VCSBaseEditor rc->setCodec(VCSBase::VCSBaseEditor::getCodec(source)); } m_core->editorManager()->activateEditor(outputEditor); + rc->setForceReadOnly(true); return rc; } |