aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cvs/cvsplugin.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2010-06-07 14:53:28 +0200
committerFriedemann Kleint <[email protected]>2010-06-07 14:53:28 +0200
commitc745155191fac756f13b92fbd0b33a458dd67b4d (patch)
tree727aa8db762b1ecad6d20bba22f1fcc935cf2123 /src/plugins/cvs/cvsplugin.cpp
parentd326c1674784254e344a732541ffa32b39a92892 (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/cvs/cvsplugin.cpp')
-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 147c522ab58..0c2e16d1ebf 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)