summaryrefslogtreecommitdiff
path: root/src/plugins/cvs
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-06-07 14:53:28 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-06-07 14:53:28 +0200
commitc745155191fac756f13b92fbd0b33a458dd67b4d (patch)
tree727aa8db762b1ecad6d20bba22f1fcc935cf2123 /src/plugins/cvs
parentd326c1674784254e344a732541ffa32b39a92892 (diff)
downloadqt-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.cpp1
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)