diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-06-07 14:53:28 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-06-07 14:53:28 +0200 |
commit | c745155191fac756f13b92fbd0b33a458dd67b4d (patch) | |
tree | 727aa8db762b1ecad6d20bba22f1fcc935cf2123 /src/plugins/cvs | |
parent | d326c1674784254e344a732541ffa32b39a92892 (diff) | |
download | qt-creator-c745155191fac756f13b92fbd0b33a458dd67b4d.tar.gz |
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>
Diffstat (limited to 'src/plugins/cvs')
-rw-r--r-- | src/plugins/cvs/cvsplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp index 147c522ab5..0c2e16d1eb 100644 --- a/src/plugins/cvs/cvsplugin.cpp +++ b/src/plugins/cvs/cvsplugin.cpp @@ -1075,6 +1075,7 @@ Core::IEditor * CVSPlugin::showOutputInEditor(const QString& title, const QStrin return 0; s.replace(QLatin1Char(' '), QLatin1Char('_')); e->setSuggestedFileName(s); + e->setForceReadOnly(true); if (!source.isEmpty()) e->setSource(source); if (codec) |